Skip to content

Commit

Permalink
Comapt: Fix createTexture:'viewFormats' test for compat
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Dec 6, 2023
1 parent 27a408f commit 3942dc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webgpu/api/validation/createTexture.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,9 @@ g.test('viewFormats')

t.skipIfTextureFormatNotSupported(format, viewFormat);

const compatible = viewCompatible(format, viewFormat);
const compatible = t.isCompatibility
? viewFormat === format
: viewCompatible(format, viewFormat);

// Test the viewFormat in the list.
t.expectValidationError(() => {
Expand Down

0 comments on commit 3942dc8

Please sign in to comment.