makeComputeCommandEncoder(dispatchType:)
Creates a compute command encoder with a dispatch type.
Declaration
func makeComputeCommandEncoder(dispatchType: MTLDispatchType) -> (any MTLComputeCommandEncoder)?Parameters
- dispatchType:
An Mtldispatchtype instance that indicates whether the compute pass the encoder creates runs commands serially or concurrently.
Discussion
Use an MTLComputeCommandEncoder instance’s methods to set up a single compute pass.