Formatting

This commit is contained in:
2025-04-06 21:02:27 -04:00
parent 98d9111688
commit 8aeb3cc32a
2 changed files with 13 additions and 2 deletions

View File

@ -276,7 +276,14 @@ impl eframe::App for ComputeDraw {
egui::TopBottomPanel::bottom("bottom").show(ctx, |ui| {
let wgpu_render_state = frame.wgpu_render_state().expect("missing WGPU state");
let image_size = wgpu_render_state.renderer.as_ref().read().callback_resources.get::<DrawResources>().unwrap().image_size;
let image_size = wgpu_render_state
.renderer
.as_ref()
.read()
.callback_resources
.get::<DrawResources>()
.unwrap()
.image_size;
ui.label(format!("Viewport: image={image_size}"))
});