atomicLoad
함수
Reads the value of an atomic<u32> or atomic<i32> location in a read-write storage binding (atomicLoad(bins[i])).
이름마다 붙은 시그니처와 설명은 커밋 26de7be8의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
declare function atomicLoad<T extends u32 | i32>(location: atomic<T>): T매개변수
-
locationatomic<T>
반환값
T
설명
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.
대상별 출력
- WGSL
-
atomicLoad(&a) - GLSL ES 3.00
- atomicLoad has no GLSL ES 3.00 spelling (no storage buffers, no atomics)