IntrinsicTarget
타입, 백엔드 분류
The emit target that spellIntrinsic and the INTRINSICS table spell for: 'wgsl' or 'glsl'.
import type { IntrinsicTarget } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
type IntrinsicTarget = 'wgsl' | 'glsl';설명
The value names a column of the registry only; a backend identifies
itself separately through Backend.id, and the GLSL backend’s id is 'glsl-es300'. A third
writer (SPIR-V, MSL) would add a new column to every registry entry and a new case in
spellIntrinsic.
함께 보기
소스
src/core/intrinsics.ts, 21행, 커밋 c66579bf 기준