blob: 29f6e72e7e581a3356bf66e6fe4ad86fbc58885a [file] [log] [blame] [edit]
#include <metal_stdlib>
using namespace metal;
float4 tint_workgroupUniformLoad(threadgroup float4* const p) {
threadgroup_barrier(mem_flags::mem_threadgroup);
float4 const result = *(p);
threadgroup_barrier(mem_flags::mem_threadgroup);
return result;
}
float4 foo(threadgroup float4* const tint_symbol) {
return tint_workgroupUniformLoad(tint_symbol);
}