blob: 12364d9b1e67c83018c005837f5e85a386014388 [file] [log] [blame] [edit]
bug/tint/1474-b.wgsl:7:5 warning: code is unreachable
let non_uniform_cond = non_uniform_value == 0;
^^^^^^^^^^^^^^^^^^^^
RWByteAddressBuffer non_uniform_value : register(u0);
[numthreads(1, 1, 1)]
void main() {
return;
const bool non_uniform_cond = (asint(non_uniform_value.Load(0u)) == 0);
if (non_uniform_cond) {
GroupMemoryBarrierWithGroupSync();
}
return;
}