---
title: "subgroup_size: builtin value, TypeShade language reference"
description: "subgroup_size, a builtin value in the TypeShade language reference. The number of invocations in the current subgroup."
url: https://typeshade.dev/reference/builtin-values/subgroup_size/
language: en
---

# `@builtin("subgroup_size")`

Builtin value

The number of invocations in the current subgroup.

**Valid in**

compute input, fragment input

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

## Syntax

`@builtin("subgroup_size"): u32`

## See also

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