---
title: "num_subgroups: TypeShade 언어 참조에 실린 내장 값 이름과 그 시그니처"
description: "num_subgroups (내장 값), TypeShade 언어 참조 항목입니다. The number of subgroups in the current workgroup."
url: https://typeshade.dev/ko/reference/builtin-values/num_subgroups/
language: ko
---

# `@builtin("num_subgroups")`

내장 값

The number of subgroups in the current workgroup.

**쓰이는 곳**

컴퓨트 입력

시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.

## 구문

`@builtin("num_subgroups"): u32`

## 설명

Compute stage only; on the CPU oracle and on WebGL2 a subgroup is one invocation, so it is the workgroup size.

## 예제

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

## 함께 보기

- [내장 값](https://typeshade.dev/ko/reference/builtin-values/)
