blob: 4a3e0c512f1f69383bc0e9b60333751564d35a1d [file] [log] [blame]
#version 310 es
precision highp float;
precision highp int;
struct SB_RW {
uint arg_0;
};
struct atomic_compare_exchange_result_u32 {
uint old_value;
bool exchanged;
};
layout(binding = 0, std430)
buffer sb_rw_block_1_ssbo {
SB_RW inner;
} v;
void atomicCompareExchangeWeak_63d8e6() {
uint arg_1 = 1u;
uint arg_2 = 1u;
uint v_1 = arg_1;
uint v_2 = atomicCompSwap(v.inner.arg_0, v_1, arg_2);
atomic_compare_exchange_result_u32 res = atomic_compare_exchange_result_u32(v_2, (v_2 == v_1));
}
void main() {
atomicCompareExchangeWeak_63d8e6();
}
#version 310 es
struct SB_RW {
uint arg_0;
};
struct atomic_compare_exchange_result_u32 {
uint old_value;
bool exchanged;
};
layout(binding = 0, std430)
buffer sb_rw_block_1_ssbo {
SB_RW inner;
} v;
void atomicCompareExchangeWeak_63d8e6() {
uint arg_1 = 1u;
uint arg_2 = 1u;
uint v_1 = arg_1;
uint v_2 = atomicCompSwap(v.inner.arg_0, v_1, arg_2);
atomic_compare_exchange_result_u32 res = atomic_compare_exchange_result_u32(v_2, (v_2 == v_1));
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
atomicCompareExchangeWeak_63d8e6();
}