WGSL_BUILTIN_NAMES
상수, 레이아웃 분류
Every WgslBuiltinName value as a runtime array.
import { WGSL_BUILTIN_NAMES } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const WGSL_BUILTIN_NAMES: readonly WgslBuiltinName[]설명
The type above is a type-only union
with no runtime witness, so a caller that needs the vocabulary at runtime — the compiler
front end’s @builtin(...) allow-list check, or an editor’s completion/hover list — reads
this instead of retyping the literals. Kept immediately next to the type it mirrors so the
two are edited together; language-service/ambient.test.ts parses this file’s AST and
cross-checks this array against the WgslBuiltinName union itself.
함께 보기
소스
src/core/sot.ts, 158행, 커밋 c66579bf 기준