vec3i()
함수, 내장 함수 분류
A vec3<i32> constructor, WGSL-style: vec3i(x, y, z).
import { vec3i } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const vec3i: (...a: NodeLike[]) => Node<"vec3<i32>">매개변수
...aNodeLike[]
반환값
Node<'vec3<i32>'>
설명
Bare number components lift to i32. The signed integer triple, such as a texel coordinate into an array texture.
예제
예제
import { vec3i } from 'typeshade'
const cell = vec3i(0, 0, 1) // Node<'vec3<i32>'>관련 가이드
소스
src/core/ir/node.ts, 2596행, 커밋 c66579bf 기준