vec4u
이 페이지에서

vec4u()

함수, 내장 함수 분류

A vec4<u32> constructor, WGSL-style: vec4u.

import { vec4u } from 'typeshade'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

const vec4u: (...a: NodeLike[]) => Node<"vec4<u32>">

매개변수

...a NodeLike[]

반환값

Node<'vec4<u32>'>

설명

Bare number components lift to u32. The shape of a packed unsigned parameter block or a texture_2d<u32> texel.

예제

예제

import { vec4u } from 'typeshade'
const params = vec4u(64, 1, 0, 0) // Node<'vec4<u32>'>

관련 가이드

소스

src/core/ir/node.ts, 2582행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고