---
title: "BindGroup: interface in Reflection, TypeShade API reference"
description: "BindGroup, an interface in Reflection. The bind entries of one WGSL @group(N), sorted by binding."
url: https://typeshade.dev/api/bindgroup/
language: en
---

# `BindGroup`

Interface in Reflection

The bind entries of one WGSL @group(N), sorted by binding.

`import type { BindGroup } from 'typeshade'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

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

## Description

`Reflection.bindGroups` holds one of these per group the module declares, sorted by `group`; a module that declares only `@group(0)` yields a single-element list. GLSL ES 3.00 has no notion of a group; see [`BindEntry`](https://typeshade.dev/api/bindentry/) for how a GLSL host folds `group` into the binding point it assigns.

## Instance properties

**`group` read only `number`**

**`entries` read only `readonly BindEntry[]`**

## See also

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

## Source

[`src/core/reflect/bind-entry.ts`, line 175](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/reflect/bind-entry.ts#L175), at commit af54ddad5
