---
title: "subgroup_id: TypeShade 언어 참조에 실린 내장 값 이름과 그 시그니처"
description: "subgroup_id (내장 값), TypeShade 언어 참조 항목입니다. The current subgroup's index within its workgroup."
url: https://typeshade.dev/ko/reference/builtin-values/subgroup_id/
language: ko
---

# `@builtin("subgroup_id")`

내장 값

The current subgroup's index within its workgroup.

**쓰이는 곳**

컴퓨트 입력

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

## 구문

`@builtin("subgroup_id"): u32`

## 설명

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

## 예제

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

## 함께 보기

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