From ac4f5e803a24c50e1f0d187bc1999d5079ab9a5d Mon Sep 17 00:00:00 2001 From: ShrekShao <5031596+shrekshao@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:25:11 -0700 Subject: [PATCH] textureStore: fix compat texture view restriction (#3976) --- .../expression/call/builtin/textureStore.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/webgpu/shader/execution/expression/call/builtin/textureStore.spec.ts b/src/webgpu/shader/execution/expression/call/builtin/textureStore.spec.ts index 09b48b13ce63..e955b82ed603 100644 --- a/src/webgpu/shader/execution/expression/call/builtin/textureStore.spec.ts +++ b/src/webgpu/shader/execution/expression/call/builtin/textureStore.spec.ts @@ -743,6 +743,18 @@ g.test('out_of_bounds_array') return true; }) ) + .beforeAllSubcases(t => { + if (t.isCompatibility) { + t.skipIf( + t.params.baseLevel !== 0, + 'view base array layer must equal 0 in compatibility mode' + ); + t.skipIf( + t.params.arrayLevels !== kArrayLevels, + 'view array layers must equal texture array layers in compatibility mode' + ); + } + }) .fn(t => { const dim = '2d'; const view_dim = '2d-array';