atomicLoad
Function
Reads the value of an atomic<u32> or atomic<i32> location in a read-write storage binding (atomicLoad(bins[i])).
The signature and the sentence under each name are the compiler's own text at commit 26de7be8.
Syntax
declare function atomicLoad<T extends u32 | i32>(location: atomic<T>): TParameters
-
locationatomic<T>
Return value
T
Description
Compiles to atomicLoad(&bins[i]) on WGSL; GLSL ES 3.00 has no atomics, so a module using it emits WGSL alone. The CPU oracle runs invocations in order and reads the location.
Targets
- WGSL
-
atomicLoad(&a) - GLSL ES 3.00
- atomicLoad has no GLSL ES 3.00 spelling (no storage buffers, no atomics)