---
title: "workgroup: type in the TypeShade language reference"
description: "workgroup, a type in the TypeShade language reference. A module variable one workgroup shares, let tile: workgroup<array<f32, 64>>…"
url: https://typeshade.dev/reference/types/workgroup/
language: en
---

# `workgroup`

Type

A module variable one workgroup shares, `let tile: workgroup<array<f32, 64>>`: zero at the start of each workgroup, read and written by every invocation of the workgroup, and a compute entry's alone.

The signature, the sentence and any message are the compiler's own text at commit af54ddad5.

## Syntax

```ts
type workgroup<T> = T
```

## Parameters

- `T`

## Description

WGSL `var<workgroup>`; its GLSL lowering in a render entry is not supported yet ([Rule 10.5](https://typeshade.dev/reference/rules/10-5/)), and a `@compute` entry that reaches no texture runs on WebGL2 as its pass program, which holds the workgroup memory as layers ([Rule 8.24](https://typeshade.dev/reference/rules/8-24/), [Rule 11.8](https://typeshade.dev/reference/rules/11-8/)).

## Examples

- [`path/parallel-sum/parallel-sum.shade.ts`](https://typeshade.dev/guide/examples/parallel-sum/)
- [`gallery/compute-sync/compute-sync.shade.ts`](https://typeshade.dev/guide/examples/compute-sync/)
- [`gallery/workgroup-override/workgroup-override.shade.ts`](https://typeshade.dev/guide/examples/workgroup-override/)
- [`gallery/workgroup-reduce/workgroup-reduce.shade.ts`](https://typeshade.dev/guide/examples/workgroup-reduce/)
- [`gallery/workgroup-scratch/workgroup-scratch.shade.ts`](https://typeshade.dev/guide/examples/workgroup-scratch/)
- [`gallery/workgroup-tile-2d/workgroup-tile-2d.shade.ts`](https://typeshade.dev/guide/examples/workgroup-tile-2d/)

## See also

- [Types](https://typeshade.dev/reference/types/)
