ATOMIC_INTRINSICS
상수, 백엔드 분류
The atomic builtins, with the arity and result of each: atomicLoad takes the location alone and returns its value; atomicStore takes a value and returns nothing; the eight read-modify-write forms take a value and return the value the location held before the update.
import { ATOMIC_INTRINSICS } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const ATOMIC_INTRINSICS: Readonly<Record<string, { readonly arity: 1 | 2 | 3; readonly returns: "value" | "void" | "casResult"; }>>설명
Every one takes its first argument as a location (xs[i], a storage
struct field, a bare atomic binding), which WGSL spells as a pointer, &xs[i], and which the
CPU backends resolve once and write back through. GLSL ES 3.00 has no atomics.
소스
src/core/intrinsics.ts, 85행, 커밋 c66579bf 기준