MTLIOCommandQueueDescriptor
A configuration template you use to create a new input/output command queue.
Declaration
class MTLIOCommandQueueDescriptorOverview
Use this descriptor type to configure the settings of each input/output command queue that you create using makeIOCommandQueue(descriptor:). To create additional input/output command queues, you can reuse a descriptor instance and optionally reconfigure its properties.
Create each input/output queue to meet your apps needs by setting the descriptor’s properties.
Select a queue’s relative level of importance with the priority property.
Create a queue that runs multiple input/output command buffers in parallel by setting the type property to MTLIOCommandQueueType.concurrent.
Decide how many individual commands a queue can run simultaneously with the maxCommandsInFlight property.
Choose how many command buffers a queue can have waiting to run with maxCommandBufferCount property.
Take control of the queue’s scratch memory allocation by implementing MTLIOScratchBufferAllocator and assign an instance of it to the scratchBufferAllocator property.