Skip to content

Commit

Permalink
[Compat] Skip depthBiasClamp !== 0 cases (#4043)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrekshao authored Nov 14, 2024
1 parent 3dbe9f3 commit ec0b116
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ g.test('depth_bias')
.fn(t => {
const { isAsync, topology, depthBias, depthBiasSlopeScale, depthBiasClamp } = t.params;

if (t.isCompatibility && !!depthBiasClamp) {
t.skip('depthBiasClamp must be 0 on compatibility mode');
}

const isTriangleTopology = topology === 'triangle-list' || topology === 'triangle-strip';
const hasDepthBias = !!depthBias || !!depthBiasSlopeScale || !!depthBiasClamp;
const shouldSucceed = !hasDepthBias || isTriangleTopology;
Expand Down

0 comments on commit ec0b116

Please sign in to comment.