Skip to content

Commit

Permalink
Compat: Skip tests with depth_bias clamp != 0
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 10, 2024
1 parent 80339cf commit e79e140
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/webgpu/api/operation/rendering/depth_bias.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ g.test('depth_bias')
},
] as const)
)
.beforeAllSubcases(t => {
t.skipIf(
t.isCompatibility && t.params.biasClamp !== 0,
'non zero depthBiasClamp is not supported in compatibility mode'
);
})
.fn(t => {
t.runDepthBiasTest('depth32float', t.params);
});
Expand Down Expand Up @@ -346,6 +352,12 @@ g.test('depth_bias_24bit_format')
},
] as const)
)
.beforeAllSubcases(t => {
t.skipIf(
t.isCompatibility && t.params.biasClamp !== 0,
'non zero depthBiasClamp is not supported in compatibility mode'
);
})
.fn(t => {
const { format } = t.params;
t.runDepthBiasTestFor24BitFormat(format, t.params);
Expand Down

0 comments on commit e79e140

Please sign in to comment.