---
title: "workgroup_id: builtin value, TypeShade language reference"
description: "workgroup_id, a builtin value in the TypeShade language reference. The id of the current invocation's workgroup within the dispatch."
url: https://typeshade.dev/reference/builtin-values/workgroup_id/
language: en
---

# `@builtin("workgroup_id")`

Builtin value

The id of the current invocation's workgroup within the dispatch.

**Valid in**

compute input

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

## Syntax

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

## Examples

- [`gallery/workgroup-reduce/workgroup-reduce.shade.ts`](https://typeshade.dev/guide/examples/workgroup-reduce/)

## See also

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