pub fn atomic_exchange<T>(_ptr: &T, _val: T) -> T
Atomic exchange. Maps to atomicExchange(&var, value) in WGSL.
atomicExchange(&var, value)