1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Move depth/stencil options into RendererOptions

This commit is contained in:
Emil Ernerfeldt
2025-10-07 16:36:08 +02:00
parent e5c86a549d
commit 3511d07af2
4 changed files with 22 additions and 19 deletions

View File

@@ -186,14 +186,14 @@ impl<'app> WgpuWinitApp<'app> {
let mut painter = pollster::block_on(egui_wgpu::winit::Painter::new(
egui_ctx.clone(),
self.native_options.wgpu_options.clone(),
egui_wgpu::depth_format_from_bits(
self.native_options.depth_buffer,
self.native_options.stencil_buffer,
),
self.native_options.viewport.transparent.unwrap_or(false),
egui_wgpu::RendererOptions {
msaa_samples: self.native_options.multisampling.max(1) as _,
dithering: self.native_options.dithering,
depth_stencil_format: egui_wgpu::depth_format_from_bits(
self.native_options.depth_buffer,
self.native_options.stencil_buffer,
),
},
));