Skip to content

Commit

Permalink
cleanup unused wgsl
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Mar 14, 2024
1 parent baf0644 commit d5d4a60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<uniform> 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});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<uniform> 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});
Expand Down

0 comments on commit d5d4a60

Please sign in to comment.