Skip to content

Commit

Permalink
Move the parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Feb 5, 2024
1 parent b89f922 commit 4f3656b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/egui-wgpu/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<wgpu::CommandBuffer> {
Vec::new()
}
Expand Down Expand Up @@ -891,9 +891,9 @@ impl Renderer {
user_cmd_bufs.extend(callback.prepare(
device,
queue,
screen_descriptor,
encoder,
&mut self.callback_resources,
screen_descriptor,
));
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/egui_demo_app/src/apps/custom3d_wgpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<wgpu::CommandBuffer> {
let resources: &TriangleRenderResources = resources.get().unwrap();
resources.prepare(device, queue, self.angle);
Expand Down

0 comments on commit 4f3656b

Please sign in to comment.