#pragma clang diagnostic ignored "-Wunused-variable" #include #include #include using namespace metal; struct SSBO { uint a; uint b; }; constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u); kernel void main0(device SSBO& _7 [[buffer(0)]]) { uint _16 = atomic_load_explicit((device atomic_uint*)&_7.b, memory_order_relaxed); uint c = _16; atomic_store_explicit((device atomic_uint*)&_7.a, c, memory_order_relaxed); }