atomicStore
이 페이지에서

atomicStore

함수

Writes value to an atomic location in a read-write storage binding (atomicStore(bins[i], 0)); returns nothing.

이름마다 붙은 시그니처와 설명은 커밋 26de7be8의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

declare function atomicStore<T extends u32 | i32>(location: atomic<T>, value: T): void

매개변수

반환값

void

설명

Compiles to atomicStore(&bins[i], v) on WGSL only.

대상별 출력

WGSL
atomicStore(&a, b)
GLSL ES 3.00
atomicStore has no GLSL ES 3.00 spelling (no storage buffers, no atomics)

예제

함께 보기

이 페이지 편집 문제 보고