---
title: "num_workgroups: builtin value, TypeShade language reference"
description: "num_workgroups, a builtin value in the TypeShade language reference. The number of workgroups dispatched, as given to the dispatch call."
url: https://typeshade.dev/reference/builtin-values/num_workgroups/
language: en
---

# `@builtin("num_workgroups")`

Builtin value

The number of workgroups dispatched, as given to the dispatch call.

**Valid in**

compute input

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

## Syntax

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

## See also

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