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

# `vec3u`

Type

A three-component vector of `u32`.

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

## Syntax

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

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/)
- [`vec3u()` in `typeshade/core/ir`](https://typeshade.dev/api/vec3u/)
