From 8a781f511b64420db33554d67476ed0f1271244c Mon Sep 17 00:00:00 2001 From: Stephen White Date: Tue, 5 Nov 2024 15:13:04 -0500 Subject: [PATCH] Compat: skip 'cube-array' validation tests. (#4032) Cube arrays are unsupported in Compatibility mode. --- src/webgpu/api/validation/compute_pipeline.spec.ts | 1 + .../validation/render_pipeline/resource_compatibility.spec.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/webgpu/api/validation/compute_pipeline.spec.ts b/src/webgpu/api/validation/compute_pipeline.spec.ts index 790f25897a94..704f09fc2475 100644 --- a/src/webgpu/api/validation/compute_pipeline.spec.ts +++ b/src/webgpu/api/validation/compute_pipeline.spec.ts @@ -718,6 +718,7 @@ g.test('resource_compatibility') !t.hasLanguageFeature('readonly_and_readwrite_storage_textures'), 'Storage textures require language feature' ); + t.skipIfTextureViewDimensionNotSupported(wgslResource.texture?.viewDimension); const layout = t.device.createPipelineLayout({ bindGroupLayouts: [ diff --git a/src/webgpu/api/validation/render_pipeline/resource_compatibility.spec.ts b/src/webgpu/api/validation/render_pipeline/resource_compatibility.spec.ts index 1d2c582dc036..8c516ebb3b85 100644 --- a/src/webgpu/api/validation/render_pipeline/resource_compatibility.spec.ts +++ b/src/webgpu/api/validation/render_pipeline/resource_compatibility.spec.ts @@ -55,6 +55,7 @@ g.test('resource_compatibility') wgslResource.storageTexture.access !== 'read-only')), 'Storage buffers and textures cannot be used in vertex shaders' ); + t.skipIfTextureViewDimensionNotSupported(wgslResource.texture?.viewDimension); const emptyVS = ` @vertex fn main() -> @builtin(position) vec4f {