# Sandbox.Rendering.CommandList.DispatchCompute

## Overload 1

```csharp
void DispatchCompute(ComputeShader compute, int threadsX, int threadsY, int threadsZ)
```

### Parameters

- `compute` (`ComputeShader`)
- `threadsX` (`int`)
- `threadsY` (`int`)
- `threadsZ` (`int`)

## Overload 2

```csharp
void DispatchCompute(ComputeShader compute, SizeHandle dimension)
```

Dispatch a compute shader

### Parameters

- `compute` (`ComputeShader`)
- `dimension` (`SizeHandle`)

Declared in [Sandbox.Rendering.CommandList](/api/Sandbox.Rendering.CommandList).
Assembly: `Sandbox.Engine`.
