Enumeration

MTLDispatchType

Constants indicating how the compute command encoder's commands are dispatched.

Declaration

enum MTLDispatchType : UInt

Topics

Command Execution Options

case concurrent

Commands may be executed concurrently.

case serial

Commands are executed sequentially.

See Also

Creating Command Encoders

func makeRenderCommandEncoder(descriptor: MTLRenderPassDescriptor) -> MTLRenderCommandEncoder?

Creates an object to encode a rendering pass into the command buffer.

Required.

func makeParallelRenderCommandEncoder(descriptor: MTLRenderPassDescriptor) -> MTLParallelRenderCommandEncoder?

Creates an object that can split the work of encoding commands for a single render pass.

Required.

func makeComputeCommandEncoder(dispatchType: MTLDispatchType) -> MTLComputeCommandEncoder?

Creates an object to encode a compute pass into the command buffer.

Required.

func makeComputeCommandEncoder() -> MTLComputeCommandEncoder?

Creates an object to encode a sequential compute pass into the command buffer.

Required.

func makeBlitCommandEncoder() -> MTLBlitCommandEncoder?

Creates an object to encode a block information transfer (blit) pass into the command buffer.

Required.