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:
@@ -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,
|
||||
),
|
||||
},
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user