---
title: "local_invocation_id: builtin value, TypeShade reference"
description: "local_invocation_id, a builtin value in the TypeShade language reference. The current invocation's id within its workgroup, as a 3-component vector."
url: https://typeshade.dev/reference/builtin-values/local_invocation_id/
language: en
---

# `@builtin("local_invocation_id")`

Builtin value

The current invocation's id within its workgroup, as a 3-component vector.

**Valid in**

compute input

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

## Syntax

`@builtin("local_invocation_id"): vec3<u32>`

## Examples

- [`path/parallel-sum/parallel-sum.shade.ts`](https://typeshade.dev/guide/examples/parallel-sum/)
- [`gallery/compute-sync/compute-sync.shade.ts`](https://typeshade.dev/guide/examples/compute-sync/)
- [`gallery/workgroup-override/workgroup-override.shade.ts`](https://typeshade.dev/guide/examples/workgroup-override/)
- [`gallery/workgroup-reduce/workgroup-reduce.shade.ts`](https://typeshade.dev/guide/examples/workgroup-reduce/)
- [`gallery/workgroup-scratch/workgroup-scratch.shade.ts`](https://typeshade.dev/guide/examples/workgroup-scratch/)
- [`gallery/workgroup-tile-2d/workgroup-tile-2d.shade.ts`](https://typeshade.dev/guide/examples/workgroup-tile-2d/)

## See also

- [Builtin values](https://typeshade.dev/reference/builtin-values/)
