| #include <metal_stdlib> | |
| using namespace metal; | |
| struct tint_module_vars_struct { | |
| device atomic_ulong* a; | |
| }; | |
| fragment void v(device atomic_ulong* a [[buffer(0)]]) { | |
| tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.a=a}; | |
| atomic_max_explicit(tint_module_vars.a, as_type<ulong>(uint2(0u)), memory_order_relaxed); | |
| } |