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

17 lines
409 B
Plaintext

bug/tint/1474-b.wgsl:7:5 warning: code is unreachable
let non_uniform_cond = non_uniform_value == 0;
^^^^^^^^^^^^^^^^^^^^
#include <metal_stdlib>
using namespace metal;
kernel void tint_symbol(device int* tint_symbol_1 [[buffer(0)]]) {
return;
bool const non_uniform_cond = (*(tint_symbol_1) == 0);
if (non_uniform_cond) {
threadgroup_barrier(mem_flags::mem_threadgroup);
}
return;
}