From 66491436cbec7b7dcff7cf6a2bd8745b3d7bbd46 Mon Sep 17 00:00:00 2001 From: Kael Choi Date: Sat, 19 Mar 2016 00:00:51 -0400 Subject: [PATCH] Added missing core changes for the last commit --- src/core/src/draw.rs | 1 + src/core/src/dummy.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/src/draw.rs b/src/core/src/draw.rs index 5ea8897142b..f57ab25742d 100644 --- a/src/core/src/draw.rs +++ b/src/core/src/draw.rs @@ -70,6 +70,7 @@ pub trait CommandBuffer { /// Update a texture fn update_texture(&mut self, R::Texture, tex::Kind, Option, data: &[u8], tex::RawImageInfo); + fn generate_mipmap(&mut self, R::ShaderResourceView); /// Clear color target fn clear_color(&mut self, R::RenderTargetView, ClearColor); fn clear_depth_stencil(&mut self, R::DepthStencilView, diff --git a/src/core/src/dummy.rs b/src/core/src/dummy.rs index bf376b0d78e..b8968c5d63d 100644 --- a/src/core/src/dummy.rs +++ b/src/core/src/dummy.rs @@ -84,6 +84,7 @@ impl draw::CommandBuffer for DummyCommandBuffer { fn update_buffer(&mut self, _: (), _: &[u8], _: usize) {} fn update_texture(&mut self, _: (), _: tex::Kind, _: Option, _: &[u8], _: tex::RawImageInfo) {} + fn generate_mipmap(&mut self, _: ()) {} fn clear_color(&mut self, _: (), _: draw::ClearColor) {} fn clear_depth_stencil(&mut self, _: (), _: Option, _: Option) {}