dawn-cmake/test/tint/bug/tint/1369.wgsl.expected.glsl

22 lines
284 B
GLSL

#version 310 es
precision mediump float;
bool tint_discarded = false;
bool call_discard() {
tint_discarded = true;
return true;
}
void f() {
bool v = call_discard();
bool also_unreachable = false;
}
void main() {
f();
if (tint_discarded) {
discard;
}
return;
}