makeIndirectCommandBuffer(descriptor:maxCommandCount:options:)
Creates an indirect command buffer instance.
Declaration
func makeIndirectCommandBuffer(descriptor: MTLIndirectCommandBufferDescriptor, maxCommandCount maxCount: Int, options: MTLResourceOptions = []) -> (any MTLIndirectCommandBuffer)?Parameters
- descriptor:
An Mtlindirectcommandbufferdescriptor instance.
- maxCount:
The largest number of commands you can store in the buffer.
- options:
An Mtlresourceoptions instance.
Mentioned in
Return Value
A new MTLIndirectCommandBuffer instance if the method completed successfully; otherwise nil.