---
title: "vec3i in WGSL, GLSL and TypeShade: shader type reference"
description: "vec3i is vec3<i32> in WGSL and ivec3 in GLSL ES 3.00. A three-component vector of i32."
url: https://typeshade.dev/reference/types/vec3i/
language: en
---

# `vec3i`

Type

A three-component vector of `i32`.

The signature, the sentence and any message are the compiler's own text at commit af54ddad5.

## Syntax

```ts
interface vec3i {
  readonly [vecTag]: readonly ['i32', 3]
  [index: number]: i32
  x: i32
  y: i32
  z: i32
  r: i32
  g: i32
  b: i32
  …
}
```

The `…` line stands for 234 more members, the swizzles. A swizzle reads two to four components as a new vector of the same element type. The components come in any order and may repeat, and their letters come from one set, `xyzw` or `rgba`.

## See also

- [Types](https://typeshade.dev/reference/types/)
- [`vec3i()` in `typeshade/core/ir`](https://typeshade.dev/api/vec3i/)
