Instance Method

makeIndirectCommandBuffer(descriptor:maxCommandCount:options:)

Creates an indirect command buffer.

Required.

Declaration

func makeIndirectCommandBuffer(descriptor: MTLIndirectCommandBufferDescriptor, maxCommandCount maxCount: Int, options: MTLResourceOptions = []) -> MTLIndirectCommandBuffer?

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.