Creates an indirect command buffer.
Required.
SDKs
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
Framework
- Metal
Declaration
func makeIndirectCommandBuffer(descriptor: MTLIndirect Command Buffer Descriptor, maxCommandCount maxCount: Int, options: MTLResource Options = []) -> MTLIndirect Command Buffer?
Parameters
descriptor
A descriptor object that describes the properties of the indirect commad buffer.
maxCount
The maximum number of commands stored in the buffer.
options
Specifies the behavior of the new buffer.
Return Value
A new indirect command buffer.