ScalarCastSource
타입, 타입 분류
The scalar keys a cast reads: every native scalar, plus the emulated double.
import type { ScalarCastSource } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
type ScalarCastSource = 'f32' | 'i32' | 'u32' | 'f64' | 'bool';설명
WGSL converts
between all of them — f32(true) is 1.0 — and none of them is a vector, which is the
point: f32(someVec3) used to type-check on both authoring surfaces and emit f32(v),
which no target compiles.
소스
src/core/ir/node.ts, 904행, 커밋 c66579bf 기준