Skip to content

Commit

Permalink
Compat: Fix depth bias test
Browse files Browse the repository at this point in the history
Using a depthStencilAttachment requires depthWriteEnabled and depthCompare set
  • Loading branch information
greggman committed Jan 25, 2024
1 parent f8e3e18 commit 85bbfe1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ g.test('depthBiasClamp')
},
depthStencil: {
format: 'depth24plus',
depthWriteEnabled: true,
depthCompare: 'always',
...(depthBiasClamp !== undefined && { depthBiasClamp }),
},
};
Expand Down

0 comments on commit 85bbfe1

Please sign in to comment.