Instance Method

newIndirectCommandBufferWithDescriptor:maxCommandCount:options:

Creates an indirect command buffer.

Required.

Declaration

- (id<MTLIndirectCommandBuffer>)newIndirectCommandBufferWithDescriptor:(MTLIndirectCommandBufferDescriptor *)descriptor maxCommandCount:(NSUInteger)maxCount options:(MTLResourceOptions)options;

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.