vec3i
On this page

vec3i()

Function in Builtins

A vec3<i32> constructor, WGSL-style: vec3i(x, y, z).

import { vec3i } from 'typeshade'

The signature, the description and the examples come from the compiler's own source at commit 26de7be8.

Syntax

const vec3i: (...a: NodeLike[]) => Node<"vec3<i32>">

Parameters

...a NodeLike[]

Return value

Node<'vec3<i32>'>

Description

Bare number components lift to i32. The signed integer triple, such as a texel coordinate into an array texture.

Examples

Example

import { vec3i } from 'typeshade'
const cell = vec3i(0, 0, 1) // Node<'vec3<i32>'>

In the guide

Source

src/core/ir/node.ts, line 2596, at commit 26de7be8

Edit this page Report a problem