diff options
Diffstat (limited to 'src/gpu/gpu.cc')
| -rw-r--r-- | src/gpu/gpu.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/gpu.cc b/src/gpu/gpu.cc index 3cdf9aa..17d32ee 100644 --- a/src/gpu/gpu.cc +++ b/src/gpu/gpu.cc @@ -147,6 +147,13 @@ RenderPass gpu_create_render_pass(WGPUDevice device, WGPUTextureFormat format, pipeline_desc.multisample.mask = 0xFFFFFFFF; pipeline_desc.fragment = &fragment_state; + // Depth Stencil State (Required for compatibility with MainSequence pass) + WGPUDepthStencilState depth_stencil = {}; + depth_stencil.format = WGPUTextureFormat_Depth24Plus; + depth_stencil.depthWriteEnabled = WGPUOptionalBool_False; + depth_stencil.depthCompare = WGPUCompareFunction_Always; + pipeline_desc.depthStencil = &depth_stencil; + pass.pipeline = wgpuDeviceCreateRenderPipeline(device, &pipeline_desc); return pass; |
