Skip to content

Commit 5deb620

Browse files
vonturekainino0x
andauthored
Skip textureNumSamples tests on non-multisampled formats (#4191)
* Compat: Disable multisampling tests on integer formats Discussed in gpuweb/gpuweb#5004 Landed in Compat proposal in gpuweb/gpuweb#5053 * Apply suggestions from code review * Skip textureNumSamples tests on non-multisampled formats Compat no longer supports multisampling with integer texture formats. Skip tests which require multisampled formats. * Update to new multisample format support method. --------- Co-authored-by: Kai Ninomiya <[email protected]> Co-authored-by: Kai Ninomiya <[email protected]>
1 parent 8ea35a6 commit 5deb620

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/webgpu/shader/execution/expression/call/builtin/textureNumSamples.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Parameters
3333
const { stage, sampled_type } = t.params;
3434
const { format } = kSampleTypeInfo[sampled_type];
3535

36+
t.skipIfTextureFormatNotMultisampled(format);
37+
3638
const sampleCount = 4;
3739
const texture = t.createTextureTracked({
3840
format,

0 commit comments

Comments
 (0)