> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12_DISPATCH_ARGUMENTS

> Describes dispatch parameters, for use by the compute shader.

Describes dispatch parameters, for use by the compute shader.

## Syntax

```cpp theme={null}
typedef struct D3D12_DISPATCH_ARGUMENTS
{
    UINT ThreadGroupCountX;
    UINT ThreadGroupCountY;
    UINT ThreadGroupCountZ;
} D3D12_DISPATCH_ARGUMENTS
```

### Members

*ThreadGroupCountX*\
Type: UINT

The size, in thread groups, of the x-dimension of the thread-group grid.

*ThreadGroupCountY*\
Type: UINT

The size, in thread groups, of the y-dimension of the thread-group grid.

*ThreadGroupCountZ*\
Type: UINT

The size, in thread groups, of the z-dimension of the thread-group grid.

## Remarks

The members of this structure serve the same purpose as the parameters of [Dispatch](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_dispatch_public).

A compiled compute shader defines the set of instructions to execute per thread and the number of threads to run per group. The thread-group parameters  indicate how many thread groups to execute. Each thread group contains the same number of threads, as defined by the compiled compute shader. The thread groups are organized in a three-dimensional grid. The total number of thread groups that the compiled compute shader executes is determined by the following calculation:

```syntax theme={null}
ThreadGroupCountX * ThreadGroupCountY * ThreadGroupCountZ
```

In particular, if any of the values in the thread-group parameters are 0, nothing will happen.

The maximum size of any dimension is 65535.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[Core Structures](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [D3D12_DRAW_ARGUMENTS](/reference/graphics/d3d12/structs/d3d12_draw_arguments_public.md)
- [D3D12_DRAW_INDEXED_ARGUMENTS](/reference/graphics/d3d12/structs/d3d12_draw_indexed_arguments_public.md)
- [D3D12_DISPATCH_RAYS_DESC (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_dispatch_rays_desc_public.md)
- [D3D12_COMMAND_SIGNATURE_DESC](/reference/graphics/d3d12/structs/d3d12_command_signature_desc_public.md)
- [D3D12_RESOURCE_UAV_BARRIER](/reference/graphics/d3d12/structs/d3d12_resource_uav_barrier_public.md)
