Contents

setRenderPipelineState(_:index:)

Encodes a reference to a render pipeline state into the argument buffer.

Declaration

func setRenderPipelineState(_ pipeline: (any MTLRenderPipelineState)?, index: Int)

Parameters

  • pipeline:

    A pipeline state the method encodes.

  • index:

    The index of a pipeline state within the argument buffer. The value corresponds to either the index ID of a declaration in Metal Shading Language (MSL) or the Index property of an Mtlargumentdescriptor instance.

See Also

Encoding pipeline states