---
title: "BindGroup: TypeShade 셰이더 API의 리플렉션 분류 인터페이스 참조 문서"
description: "BindGroup, TypeShade API의 리플렉션 분류에 속하는 인터페이스입니다. 하나의 WGSL @group(N)에 속한 바인드 항목입니다. binding 순으로 정렬됩니다."
url: https://typeshade.dev/ko/api/bindgroup/
language: ko
---

# `BindGroup`

인터페이스, 리플렉션 분류

하나의 WGSL @group(N)에 속한 바인드 항목입니다. binding 순으로 정렬됩니다.

`import type { BindGroup } from 'typeshade'`

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

## 구문

```ts
interface BindGroup {
  readonly group: number;
  readonly entries: readonly BindEntry[];
}
```

## 설명

`Reflection.bindGroups`는 모듈이 선언한 그룹마다 이 항목을 하나씩 담으며, `group` 순으로 정렬합니다. `@group(0)`만 선언한 모듈은 원소가 하나인 목록을 만듭니다. GLSL ES 3.00에는 그룹이라는 개념이 없습니다. GLSL 호스트가 `group`을 자신이 할당하는 바인딩 지점에 어떻게 합치는지는 [`BindEntry`](https://typeshade.dev/ko/api/bindentry/)에서 설명합니다.

## 인스턴스 속성

**`group` 읽기 전용 `number`**

**`entries` 읽기 전용 `readonly BindEntry[]`**

## 함께 보기

- [`BindEntry`](https://typeshade.dev/ko/api/bindentry/)

## 소스

[`src/core/reflect/bind-entry.ts`, 175행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/reflect/bind-entry.ts#L175), 커밋 af54ddad5 기준
