vec4i
이 페이지에서

vec4i()

함수, 내장 함수 분류

A vec4<i32> constructor, WGSL-style: vec4i.

import { vec4i } from 'typeshade'

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

구문

const vec4i: (...a: NodeLike[]) => Node<"vec4<i32>">

매개변수

...a NodeLike[]

반환값

Node<'vec4<i32>'>

설명

Bare number components lift to i32. The signed counterpart of vec4u, and the texel type of a texture_2d<i32>.

예제

예제

import { vec4i } from 'typeshade'
const texel = vec4i(0, 0, 0, 1) // Node<'vec4<i32>'>

관련 가이드

함께 보기

소스

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

이 페이지 편집 문제 보고