blob: 7a788057075c8e89c1043ca3e2d68adf6269c45a [file] [log] [blame]
bug/tint/1474-b.wgsl:7:9 warning: code is unreachable
let non_uniform_cond = non_uniform_value == 0;
^^^^^^^^^^^^^^^^
RWByteAddressBuffer non_uniform_value : register(u0, space0);
[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;
}