Skip to content

Commit

Permalink
Compat: Skip new storage texture rg32 tests (gpuweb#3421)
Browse files Browse the repository at this point in the history
* Compat: Skip new storage texture rg32 tests

Compat doesn't support rg32xxx textures
  • Loading branch information
greggman authored Feb 21, 2024
1 parent 39273f8 commit bc24cef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/webgpu/api/operation/storage_texture/read_only.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,9 @@ g.test('basic')
if (t.params.format === 'bgra8unorm') {
t.selectDeviceOrSkipTestCase('bgra8unorm-storage');
}
if (t.isCompatibility) {
t.skipIfTextureFormatNotUsableAsStorageTexture(t.params.format);
}
})
.fn(t => {
const { format, shaderStage, depthOrArrayLayers } = t.params;
Expand Down
3 changes: 3 additions & 0 deletions src/webgpu/api/operation/storage_texture/read_write.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ g.test('basic')
.combine('depthOrArrayLayers', [1, 2] as const)
.unless(p => p.textureDimension === '1d' && p.depthOrArrayLayers > 1)
)
.beforeAllSubcases(t => {
t.skipIfTextureFormatNotUsableAsStorageTexture(t.params.format);
})
.fn(t => {
const { format, shaderStage, textureDimension, depthOrArrayLayers } = t.params;

Expand Down

0 comments on commit bc24cef

Please sign in to comment.