diff --git a/src/webgpu/shader/validation/decl/var.spec.ts b/src/webgpu/shader/validation/decl/var.spec.ts index f9e15bd6e2a6..1abf8bcf4fdb 100644 --- a/src/webgpu/shader/validation/decl/var.spec.ts +++ b/src/webgpu/shader/validation/decl/var.spec.ts @@ -749,7 +749,8 @@ g.test('var_access_mode_bad_other_template_contents') .fn(t => { const prog = `@group(0) @binding(0) var<${t.params.prefix}${t.params.accessMode}${t.params.suffix}> x: i32;`; - const ok = t.params.prefix === 'storage,' && t.params.suffix === ''; + const ok = + t.params.prefix === 'storage,' && (t.params.suffix === '' || t.params.suffix === ','); t.expectCompileResult(ok, prog); });