diff --git a/crates/egui-wgpu/src/renderer.rs b/crates/egui-wgpu/src/renderer.rs index 3794148b51d..78841654986 100644 --- a/crates/egui-wgpu/src/renderer.rs +++ b/crates/egui-wgpu/src/renderer.rs @@ -79,9 +79,9 @@ pub trait CallbackTrait: Send + Sync { &self, _device: &wgpu::Device, _queue: &wgpu::Queue, + _screen_descriptor: &ScreenDescriptor, _egui_encoder: &mut wgpu::CommandEncoder, _callback_resources: &mut CallbackResources, - _screen_descriptor: &ScreenDescriptor, ) -> Vec { Vec::new() } @@ -891,9 +891,9 @@ impl Renderer { user_cmd_bufs.extend(callback.prepare( device, queue, + screen_descriptor, encoder, &mut self.callback_resources, - screen_descriptor, )); } } diff --git a/crates/egui_demo_app/src/apps/custom3d_wgpu.rs b/crates/egui_demo_app/src/apps/custom3d_wgpu.rs index 7f635712e24..24fb970d5f8 100644 --- a/crates/egui_demo_app/src/apps/custom3d_wgpu.rs +++ b/crates/egui_demo_app/src/apps/custom3d_wgpu.rs @@ -148,9 +148,9 @@ impl egui_wgpu::CallbackTrait for CustomTriangleCallback { &self, device: &wgpu::Device, queue: &wgpu::Queue, + _screen_descriptor: &ScreenDescriptor, _egui_encoder: &mut wgpu::CommandEncoder, resources: &mut egui_wgpu::CallbackResources, - _screen_descriptor: &ScreenDescriptor, ) -> Vec { let resources: &TriangleRenderResources = resources.get().unwrap(); resources.prepare(device, queue, self.angle);