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 filters
3diagnostic(warning, derivative_uniformity);
5fn diagnostic_test(s : sampler, tex : texture_2d<f32>, ro_buffer : array<f32, 4>) -> vec4f {
6 if ro_buffer[0] == 0 {
7 // Emits a derivative uniformity error during validation.
8 return textureSample(tex, s, vec2(0.,0.));
9 }
11 return vec4f(0.);
Contents