Contents

makeCommandQueue()

Creates a queue you use to submit rendering and computation commands to a GPU.

Declaration

func makeCommandQueue() -> (any MTLCommandQueue)?

Mentioned in

Return Value

A new MTLCommandQueue instance if the method completed successfully; otherwise nil.

Discussion

A command queue can only submit commands to the GPU device instance that created it.

This method is the equivalent of passing 64 to the makeCommandQueue(maxCommandBufferCount:) method.

See Also

Creating command queues