vec4u
On this page

vec4u()

Function in Builtins

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

import { vec4u } from 'typeshade'

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

Syntax

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

Parameters

...a NodeLike[]

Return value

Node<'vec4<u32>'>

Description

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

Examples

Example

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

In the guide

Source

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

Edit this page Report a problem