dawn-cmake/test/tint/bug/tint/1474-b.wgsl.expected.dxc.hlsl

16 lines
395 B
HLSL

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, 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;
}