---
title: "vec3i(): IR builder function in typeshade/core/ir, TypeShade"
description: "vec3i, an IR builder function in typeshade/core/ir. A vec3<i32> constructor, WGSL-style: vec3i(x, y, z)."
url: https://typeshade.dev/api/vec3i/
language: en
---

# `vec3i()`

Function in Builtins

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

`import { vec3i } from 'typeshade/core/ir'`

This export returns an IR node. A `"use typeshade"` file calls the builtin itself: [`vec3i()`](https://typeshade.dev/reference/functions/vec3i/)

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

## Syntax

```ts
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

```ts
import { vec3i } from 'typeshade/core/ir'

const cell = vec3i(0, 0, 1)  // Node<'vec3<i32>'>
```

## In the guide

- [Values and mutation](https://typeshade.dev/guide/internals/values-and-mutation/)

## See also

- [`vec3i()`](https://typeshade.dev/reference/functions/vec3i/)

## Source

[`src/core/ir/node.ts`, line 2316](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L2316), at commit af54ddad5
