blob: 02eafeb348c389dc0cf0c651d2c98439399137bd [file] [log] [blame]
<dawn>/test/tint/diagnostic_filtering/while_loop_attribute.wgsl:5:21 warning: 'dpdx' must only be called from uniform control flow
while (x > 0.0 && dpdx(1.0) > 0.0) {
^^^^^^^^^
<dawn>/test/tint/diagnostic_filtering/while_loop_attribute.wgsl:5:3 note: control flow depends on possibly non-uniform value
while (x > 0.0 && dpdx(1.0) > 0.0) {
^^^^^
<dawn>/test/tint/diagnostic_filtering/while_loop_attribute.wgsl:5:21 note: return value of 'dpdx' may be non-uniform
while (x > 0.0 && dpdx(1.0) > 0.0) {
^^^^^^^^^
struct tint_symbol_3 {
float x : TEXCOORD0;
};
void main_inner(float x) {
float4 v = (0.0f).xxxx;
while (true) {
bool tint_symbol = (x > 0.0f);
if (tint_symbol) {
float tint_symbol_1 = ddx(1.0f);
tint_symbol = (tint_symbol_1 > 0.0f);
}
if (!(tint_symbol)) {
break;
}
{
}
}
}
void main(tint_symbol_3 tint_symbol_2) {
main_inner(tint_symbol_2.x);
return;
}