diff --git a/examples/src/bin/interactive_fractal/app.rs b/examples/src/bin/interactive_fractal/app.rs index cdeb48fec9..ed05ff6235 100644 --- a/examples/src/bin/interactive_fractal/app.rs +++ b/examples/src/bin/interactive_fractal/app.rs @@ -111,7 +111,7 @@ Usage: } /// Run our compute pipeline and return a future of when the compute is finished - pub fn compute(&mut self, image_target: DeviceImageView) -> Box { + pub fn compute(&self, image_target: DeviceImageView) -> Box { self.fractal_pipeline.compute( image_target, self.c, diff --git a/examples/src/bin/interactive_fractal/pixels_draw_pipeline.rs b/examples/src/bin/interactive_fractal/pixels_draw_pipeline.rs index 878deaec2b..6e4e3e9c92 100644 --- a/examples/src/bin/interactive_fractal/pixels_draw_pipeline.rs +++ b/examples/src/bin/interactive_fractal/pixels_draw_pipeline.rs @@ -162,7 +162,7 @@ impl PixelsDrawPipeline { /// Draw input `image` over a quad of size -1.0 to 1.0 pub fn draw( - &mut self, + &self, viewport_dimensions: [u32; 2], image: Arc, ) -> SecondaryAutoCommandBuffer { diff --git a/examples/src/bin/interactive_fractal/place_over_frame.rs b/examples/src/bin/interactive_fractal/place_over_frame.rs index d11c5387c3..a068e18bfe 100644 --- a/examples/src/bin/interactive_fractal/place_over_frame.rs +++ b/examples/src/bin/interactive_fractal/place_over_frame.rs @@ -72,7 +72,7 @@ impl RenderPassPlaceOverFrame { /// Place view exactly over swapchain image target. /// Texture draw pipeline uses a quad onto which it places the view. pub fn render( - &mut self, + &self, before_future: F, view: DeviceImageView, target: SwapchainImageView, diff --git a/examples/src/bin/shader-types-sharing.rs b/examples/src/bin/shader-types-sharing.rs index d178945bd2..0a601419d5 100644 --- a/examples/src/bin/shader-types-sharing.rs +++ b/examples/src/bin/shader-types-sharing.rs @@ -199,7 +199,7 @@ fn main() { data_buffer: Arc>, parameters: shaders::ty::Parameters, command_buffer_allocator: &StandardCommandBufferAllocator, - descriptor_set_allocator: &mut StandardDescriptorSetAllocator, + descriptor_set_allocator: &StandardDescriptorSetAllocator, ) { let layout = pipeline.layout().set_layouts().get(0).unwrap(); let set = PersistentDescriptorSet::new( @@ -238,7 +238,7 @@ fn main() { } let command_buffer_allocator = StandardCommandBufferAllocator::new(device.clone()); - let mut descriptor_set_allocator = StandardDescriptorSetAllocator::new(device.clone()); + let descriptor_set_allocator = StandardDescriptorSetAllocator::new(device.clone()); // Preparing test data array `[0, 1, 2, 3....]` let data_buffer = { @@ -288,7 +288,7 @@ fn main() { data_buffer.clone(), shaders::ty::Parameters { value: 2 }, &command_buffer_allocator, - &mut descriptor_set_allocator, + &descriptor_set_allocator, ); // Then add 1 to each value @@ -298,7 +298,7 @@ fn main() { data_buffer.clone(), shaders::ty::Parameters { value: 1 }, &command_buffer_allocator, - &mut descriptor_set_allocator, + &descriptor_set_allocator, ); // Then multiply each value by 3 @@ -308,7 +308,7 @@ fn main() { data_buffer.clone(), shaders::ty::Parameters { value: 3 }, &command_buffer_allocator, - &mut descriptor_set_allocator, + &descriptor_set_allocator, ); let data_buffer_content = data_buffer.read().unwrap();