| #version 310 es |
| precision mediump float; |
| |
| struct atomic_compare_exchange_resulti32 { |
| int old_value; |
| bool exchanged; |
| }; |
| |
| |
| struct SB_RW_atomic { |
| int arg_0; |
| }; |
| |
| struct SB_RW { |
| int arg_0; |
| }; |
| |
| struct x__atomic_compare_exchange_resulti32 { |
| int old_value; |
| bool exchanged; |
| }; |
| |
| layout(binding = 0, std430) buffer sb_rw_block_ssbo { |
| SB_RW_atomic inner; |
| } sb_rw; |
| |
| void atomicCompareExchangeWeak_1bd40a() { |
| x__atomic_compare_exchange_resulti32 res = x__atomic_compare_exchange_resulti32(0, false); |
| atomic_compare_exchange_resulti32 atomic_compare_result; |
| atomic_compare_result.old_value = atomicCompSwap(sb_rw.inner.arg_0, 1, 1); |
| atomic_compare_result.exchanged = atomic_compare_result.old_value == 1; |
| atomic_compare_exchange_resulti32 tint_symbol = atomic_compare_result; |
| int old_value_1 = tint_symbol.old_value; |
| int x_19 = old_value_1; |
| x__atomic_compare_exchange_resulti32 tint_symbol_1 = x__atomic_compare_exchange_resulti32(x_19, (x_19 == 1)); |
| res = tint_symbol_1; |
| return; |
| } |
| |
| void fragment_main_1() { |
| atomicCompareExchangeWeak_1bd40a(); |
| return; |
| } |
| |
| void fragment_main() { |
| fragment_main_1(); |
| } |
| |
| void main() { |
| fragment_main(); |
| return; |
| } |
| #version 310 es |
| |
| struct atomic_compare_exchange_resulti32 { |
| int old_value; |
| bool exchanged; |
| }; |
| |
| |
| struct SB_RW_atomic { |
| int arg_0; |
| }; |
| |
| struct SB_RW { |
| int arg_0; |
| }; |
| |
| struct x__atomic_compare_exchange_resulti32 { |
| int old_value; |
| bool exchanged; |
| }; |
| |
| layout(binding = 0, std430) buffer sb_rw_block_ssbo { |
| SB_RW_atomic inner; |
| } sb_rw; |
| |
| void atomicCompareExchangeWeak_1bd40a() { |
| x__atomic_compare_exchange_resulti32 res = x__atomic_compare_exchange_resulti32(0, false); |
| atomic_compare_exchange_resulti32 atomic_compare_result; |
| atomic_compare_result.old_value = atomicCompSwap(sb_rw.inner.arg_0, 1, 1); |
| atomic_compare_result.exchanged = atomic_compare_result.old_value == 1; |
| atomic_compare_exchange_resulti32 tint_symbol = atomic_compare_result; |
| int old_value_1 = tint_symbol.old_value; |
| int x_19 = old_value_1; |
| x__atomic_compare_exchange_resulti32 tint_symbol_1 = x__atomic_compare_exchange_resulti32(x_19, (x_19 == 1)); |
| res = tint_symbol_1; |
| return; |
| } |
| |
| void compute_main_1() { |
| atomicCompareExchangeWeak_1bd40a(); |
| return; |
| } |
| |
| void compute_main() { |
| compute_main_1(); |
| } |
| |
| layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; |
| void main() { |
| compute_main(); |
| return; |
| } |