vec4u()
Function in Builtins
A vec4<u32> constructor, WGSL-style: vec4u.
import { vec4u } from 'typeshade/core/ir'
This export returns an IR node. A "use typeshade" file calls the builtin itself: vec4u()
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
const vec4u: (...a: NodeLike[]) => Node<"vec4<u32>">Parameters
...aNodeLike[]
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/core/ir'
const params = vec4u(64, 1, 0, 0) // Node<'vec4<u32>'>In the guide
See also
Source
src/core/ir/node.ts, line 2302, at commit af54ddad5