makeCommandQueue(maxCommandBufferCount:)
Creates a queue you use to submit rendering and computation commands to a GPU that has a fixed number of uncompleted command buffers.
Declaration
func makeCommandQueue(maxCommandBufferCount: Int) -> (any MTLCommandQueue)?Parameters
- maxCommandBufferCount:
An integer that sets the maximum number of uncompleted command buffers the queue can allow.
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.