blob: d76c78416148342891883b7522a8fec339053961 [file] [log] [blame]
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;
}