dawn-cmake/test/tint/bug/tint/1369.wgsl.expected.dxc.hlsl

16 lines
226 B
HLSL

static bool tint_discarded = false;
bool call_discard() {
tint_discarded = true;
return true;
}
void f() {
bool v = call_discard();
bool also_unreachable = false;
if (tint_discarded) {
discard;
}
return;
}