diff --git a/src/webgpu/shader/validation/expression/call/builtin/textureSample.spec.ts b/src/webgpu/shader/validation/expression/call/builtin/textureSample.spec.ts index b6a8ae3ceeac..78150df07180 100644 --- a/src/webgpu/shader/validation/expression/call/builtin/textureSample.spec.ts +++ b/src/webgpu/shader/validation/expression/call/builtin/textureSample.spec.ts @@ -201,7 +201,7 @@ Validates that only non-const offset arguments are rejected by ${builtin} @group(0) @binding(0) var s: sampler; @group(0) @binding(1) var t: ${textureType}; @group(0) @binding(2) var u: ${offsetArgType}; -@fragment fn fs(@builtin(position) p: vec4f) -> @location(0) vec4f { +@fragment fn fs() -> @location(0) vec4f { const c = 1; let l = ${offsetArgType!.create(0).wgsl()}; let v = textureSample(t, s, ${coordWGSL}${arrayWGSL}, ${offsetWGSL}); diff --git a/src/webgpu/shader/validation/expression/call/builtin/textureSampleCompare.spec.ts b/src/webgpu/shader/validation/expression/call/builtin/textureSampleCompare.spec.ts index 1f60f6edbce3..b6d8307ea8a2 100644 --- a/src/webgpu/shader/validation/expression/call/builtin/textureSampleCompare.spec.ts +++ b/src/webgpu/shader/validation/expression/call/builtin/textureSampleCompare.spec.ts @@ -228,7 +228,7 @@ Validates that only non-const offset arguments are rejected by ${builtin} @group(0) @binding(0) var s: sampler_comparison; @group(0) @binding(1) var t: ${textureType}; @group(0) @binding(2) var u: ${offsetArgType}; -@fragment fn fs(@builtin(position) p: vec4f) -> @location(0) vec4f { +@fragment fn fs() -> @location(0) vec4f { const c = 1; let l = ${offsetArgType?.create(0).wgsl()}; let v = textureSampleCompare(t, s, ${coordWGSL}${arrayWGSL}, 0, ${offsetWGSL});