2021-06-18 18:56:13 +00:00
|
|
|
var<workgroup> arg_0 : atomic<i32>;
|
2021-06-18 18:56:13 +00:00
|
|
|
|
2021-06-18 18:56:13 +00:00
|
|
|
fn atomicExchange_e114ba() {
|
2022-10-25 13:08:45 +00:00
|
|
|
var res : i32 = atomicExchange(&(arg_0), 1i);
|
2021-06-18 18:56:13 +00:00
|
|
|
}
|
2021-06-18 18:56:13 +00:00
|
|
|
|
2022-06-07 13:55:34 +00:00
|
|
|
@compute @workgroup_size(1)
|
2021-06-18 18:56:13 +00:00
|
|
|
fn compute_main() {
|
|
|
|
atomicExchange_e114ba();
|
|
|
|
}
|