From 85bbfe1bd20f448d2ef05ff0579b6d67dbffce90 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Thu, 25 Jan 2024 13:16:05 -0800 Subject: [PATCH] Compat: Fix depth bias test Using a depthStencilAttachment requires depthWriteEnabled and depthCompare set --- .../api/validation/render_pipeline/depth_stencil_state.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webgpu/compat/api/validation/render_pipeline/depth_stencil_state.spec.ts b/src/webgpu/compat/api/validation/render_pipeline/depth_stencil_state.spec.ts index 2f359ad0fc71..66045c2b8ae4 100644 --- a/src/webgpu/compat/api/validation/render_pipeline/depth_stencil_state.spec.ts +++ b/src/webgpu/compat/api/validation/render_pipeline/depth_stencil_state.spec.ts @@ -42,6 +42,8 @@ g.test('depthBiasClamp') }, depthStencil: { format: 'depth24plus', + depthWriteEnabled: true, + depthCompare: 'always', ...(depthBiasClamp !== undefined && { depthBiasClamp }), }, };