diff --git a/src/webgpu/api/operation/storage_texture/read_only.spec.ts b/src/webgpu/api/operation/storage_texture/read_only.spec.ts index 9577afa5e0a6..a46afaf09991 100644 --- a/src/webgpu/api/operation/storage_texture/read_only.spec.ts +++ b/src/webgpu/api/operation/storage_texture/read_only.spec.ts @@ -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; diff --git a/src/webgpu/api/operation/storage_texture/read_write.spec.ts b/src/webgpu/api/operation/storage_texture/read_write.spec.ts index 55df67c958df..9eb04b2b458f 100644 --- a/src/webgpu/api/operation/storage_texture/read_write.spec.ts +++ b/src/webgpu/api/operation/storage_texture/read_write.spec.ts @@ -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;