atomicStore
Function
Writes value to an atomic location in a read-write storage binding (atomicStore(bins[i], 0)); returns nothing.
The signature and the sentence under each name are the compiler's own text at commit 26de7be8.
Syntax
declare function atomicStore<T extends u32 | i32>(location: atomic<T>, value: T): voidParameters
-
locationatomic<T> -
valueT
Return value
void
Description
Compiles to atomicStore(&bins[i], v) on WGSL only.
Targets
- WGSL
-
atomicStore(&a, b) - GLSL ES 3.00
- atomicStore has no GLSL ES 3.00 spelling (no storage buffers, no atomics)