Protocol

MTLIndirectRenderCommand

A render command in an indirect command buffer.

Declaration

protocol MTLIndirectRenderCommand

Overview

Don’t implement this protocol; you get objects of this type by asking a MTLIndirectCommandBuffer for them.

Use this object to reset or encode a command. You must always reset a command before encoding a new command.

Topics

Setting Command Arguments

func setRenderPipelineState(MTLRenderPipelineState)

Sets the render pipeline state object used by the command.

Required.

func setVertexBuffer(MTLBuffer, offset: Int, at: Int)

Sets a vertex buffer argument for the command.

Required.

func setFragmentBuffer(MTLBuffer, offset: Int, at: Int)

Sets a fragment buffer argument for the command.

Required.

Resetting a Command

func reset()

Resets the command to its default state.

Required.

Relationships

Inherits From

See Also

Essentials

Creating an Indirect Command Buffer

Configure a descriptor to specify the properties of an indirect command buffer.

protocol MTLIndirectCommandBuffer

A command buffer containing reusable commands, encoded either on the CPU or GPU.

protocol MTLIndirectComputeCommand

A compute command in an indirect command buffer.

struct MTLIndirectCommandBufferExecutionRange

A range of commands in an indirect command buffer.