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