blob: bec2c30b483a464d7efb418f92167d44970fe6dc [file] [log] [blame] [edit]
diagnostic_filtering/for_loop_body_attribute.wgsl:8:9 warning: 'textureSample' must only be called from uniform control flow
v = textureSample(t, s, vec2(0, 0));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diagnostic_filtering/for_loop_body_attribute.wgsl:7:3 note: control flow depends on possibly non-uniform value
for (; x > v.x; ) @diagnostic(warning, derivative_uniformity) {
^^^
diagnostic_filtering/for_loop_body_attribute.wgsl:8:9 note: return value of 'textureSample' may be non-uniform
v = textureSample(t, s, vec2(0, 0));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#version 310 es
precision highp float;
layout(location = 0) in float x_1;
uniform highp sampler2D t_s;
void tint_symbol(float x) {
vec4 v = vec4(0.0f);
{
for(; (x > v.x); ) {
v = texture(t_s, vec2(0.0f));
}
}
}
void main() {
tint_symbol(x_1);
return;
}