Instance Method

setRenderPipelineState(_:index:)

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

Required.

Declaration

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

Parameters

pipeline

The pipeline state object to encode.

index

The index of the pipeline state object within the argument buffer. This value corresponds to either the index ID of a Metal shading language declaration or the index field of a MTLArgumentDescriptor object.

See Also

Encoding Render Pipeline States

func setRenderPipelineStates([MTLRenderPipelineState?], range: Range<Int>)

Encodes references to an array of render pipeline states into the argument buffer.