2022-11-02 18:14:59 +00:00
|
|
|
bug/tint/1474-b.wgsl:7:5 warning: code is unreachable
|
2022-10-14 15:15:29 +00:00
|
|
|
let non_uniform_cond = non_uniform_value == 0;
|
2022-11-02 18:14:59 +00:00
|
|
|
^^^^^^^^^^^^^^^^^^^^
|
2022-10-14 15:15:29 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|