INTRINSIC_BINDING_REFS
상수, 백엔드 분류
The binding names an intrinsic's emitted text reads directly, keyed by intrinsic id, for the intrinsics whose spelling names a binding with no argument carrying it.
import { INTRINSIC_BINDING_REFS } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const INTRINSIC_BINDING_REFS: Readonly<Record<string, readonly string[]>>설명
Today that is
f64Guard, whose fetch reads the _fp64 texture. Reference collection over the IR walks
argument nodes, so it cannot see these names. A consumer that trims a shader stage down to
the bindings it uses must also keep every binding listed here for each intrinsic call it
keeps; otherwise the emitted GLSL reads a sampler the shader never declares, and the driver
rejects it at compile time. Any intrinsic that hardcodes a binding name into its spelling
needs a row here.
소스
src/core/intrinsics.ts, 980행, 커밋 c66579bf 기준