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 Pipeline States

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

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

func setComputePipelineState(MTLComputePipelineState?, at: Int)

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

Required.

Beta
func setComputePipelineStates(UnsafePointer<MTLComputePipelineState?>, with: NSRange)

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

Required.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software