vec3u()
함수, 내장 함수 분류
A vec3<u32> constructor, WGSL-style: vec3u(x, y, z).
import { vec3u } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const vec3u: (...a: NodeLike[]) => Node<"vec3<u32>">매개변수
...aNodeLike[]
반환값
Node<'vec3<u32>'>
설명
Bare number components lift to u32,
where vec3 lifts them to f32. It is the type of the compute global_invocation_id
builtin, so this is how a workgroup coordinate is built by hand.
예제
예제
import { vec3u } from 'typeshade'
const origin = vec3u(0, 0, 0) // Node<'vec3<u32>'>관련 가이드
함께 보기
소스
src/core/ir/node.ts, 2568행, 커밋 c66579bf 기준