blob: 033348103b4f6e9e7f978a5de7b691d8758b7bd4 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct SB_RW {
atomic_int arg_0;
};
struct tint_module_vars_struct {
device SB_RW* sb_rw;
};
void atomicStore_d1e9a6(tint_module_vars_struct tint_module_vars) {
int arg_1 = 1;
atomic_store_explicit((&(*tint_module_vars.sb_rw).arg_0), arg_1, memory_order_relaxed);
}
fragment void fragment_main(device SB_RW* sb_rw [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.sb_rw=sb_rw};
atomicStore_d1e9a6(tint_module_vars);
}
kernel void compute_main(device SB_RW* sb_rw [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.sb_rw=sb_rw};
atomicStore_d1e9a6(tint_module_vars);
}