---
title: "WorkgroupCount: type in CPU oracle, TypeShade API reference"
description: "WorkgroupCount, a type in CPU oracle. The shape of workgroups a dispatch takes: one number for a 1-D grid, or the three counts."
url: https://typeshade.dev/api/workgroupcount/
language: en
---

# `WorkgroupCount`

Type in CPU oracle

The shape of workgroups a dispatch takes: one number for a 1-D grid, or the three counts.

`import type { WorkgroupCount } from 'typeshade'`

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

## Syntax

```ts
type WorkgroupCount = number | readonly [number, number, number];
```

## Source

[`src/core/debug/dispatch.ts`, line 39](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/debug/dispatch.ts#L39), at commit af54ddad5
