---
title: dispatchType
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcomputecommandencoder/dispatchtype
---

# dispatchType

The dispatch type to use when submitting compute work to the GPU.

## Declaration

```swift
var dispatchType: MTLDispatchType { get }
```

## Discussion

Discussion You set this property when you create the command encoder, and it doesn’t change for the remainder of the encoding. See makeComputeCommandEncoder(dispatchType:) for more information.

## See Also

### Configuring the pipeline state

- [setComputePipelineState(_:)](metal/mtlcomputecommandencoder/setcomputepipelinestate(_:).md)
