Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.
1#define_import_path mod
3@group(0) @binding(0) var image: texture_2d<f32>;
4@group(0) @binding(1) var s: sampler;
6// miscellaneous expressions which have caused issues in the past, to avoid regressions
8fn f() -> f32 {
9 let x = textureSample(image, s, vec2<f32>(0.0)).r;
10 let y = textureSample(image, s, vec2<f32>(0.0), vec2<i32>(1, 1)).r;
11 return x * y;
Contents