---
title: "WorkgroupShape: type in IR, TypeShade API reference"
description: "WorkgroupShape, a type in IR. The x, y and z extents of a compute entry's workgroup, WGSL's @workgroup_size(x, y, z)."
url: https://typeshade.dev/api/workgroupshape/
language: en
---

# `WorkgroupShape`

Type in IR

The x, y and z extents of a compute entry's workgroup, WGSL's `@workgroup_size(x, y, z)`.

`import type { WorkgroupShape } from 'typeshade'`
`import type { WorkgroupShape } from 'typeshade/core/ir'`

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

## Syntax

```ts
type WorkgroupShape = readonly [number, number, number];
```

## Source

[`src/core/ir/nodes/entry-and-directive.ts`, line 12](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/nodes/entry-and-directive.ts#L12), at commit af54ddad5
