IntKey
타입, 타입 분류
The integer keys, i32 and u32 scalars and vectors, for the builtins whose WGSL and GLSL domain includes integers: abs, min, max and clamp.
import type { IntKey } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
type IntKey = 'i32' | 'u32' | `vec${number}<i32>` | `vec${number}<u32>`;설명
sign is defined over floats
and signed integers only, so it takes i32 and rejects u32.
소스
src/core/ir/node.ts, 1298행, 커밋 c66579bf 기준