blob: ed09b3b61a9aff8fb169e03be5b2538244dead41 [file] [log] [blame]
RWByteAddressBuffer non_uniform_global : register(u0);
RWByteAddressBuffer output : register(u1);
static bool continue_execution = true;
void foo() {
if ((asint(non_uniform_global.Load(0u)) < 0)) {
continue_execution = false;
}
}
void bar() {
output.Store(0u, asuint(ddx(1.0f)));
}
void main() {
foo();
bar();
if (!(continue_execution)) {
discard;
}
}