From be1a8789437e0653c0fb220dc2045a735cbe2bce Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Thu, 6 Feb 2020 08:56:44 -0800 Subject: [PATCH] fix forward flat depth --- .../pipelines/forward_flat/mod.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/render/render_graph_2/pipelines/forward_flat/mod.rs b/src/render/render_graph_2/pipelines/forward_flat/mod.rs index 5716ba4f9c..ef2ce46813 100644 --- a/src/render/render_graph_2/pipelines/forward_flat/mod.rs +++ b/src/render/render_graph_2/pipelines/forward_flat/mod.rs @@ -75,15 +75,15 @@ impl ForwardFlatPipelineBuilder for RenderGraphBuilder { depth_bias_slope_scale: 0.0, depth_bias_clamp: 0.0, }) - // .with_depth_stencil_state(wgpu::DepthStencilStateDescriptor { - // format: wgpu::TextureFormat::Depth32Float, - // depth_write_enabled: true, - // depth_compare: wgpu::CompareFunction::Less, - // stencil_front: wgpu::StencilStateFaceDescriptor::IGNORE, - // stencil_back: wgpu::StencilStateFaceDescriptor::IGNORE, - // stencil_read_mask: 0, - // stencil_write_mask: 0, - // }) + .with_depth_stencil_state(wgpu::DepthStencilStateDescriptor { + format: wgpu::TextureFormat::Depth32Float, + depth_write_enabled: true, + depth_compare: wgpu::CompareFunction::Less, + stencil_front: wgpu::StencilStateFaceDescriptor::IGNORE, + stencil_back: wgpu::StencilStateFaceDescriptor::IGNORE, + stencil_read_mask: 0, + stencil_write_mask: 0, + }) .add_color_state(wgpu::ColorStateDescriptor { format: wgpu::TextureFormat::Bgra8UnormSrgb, color_blend: wgpu::BlendDescriptor::REPLACE,