Instance Method

setRenderPipelineStates(_:range:)

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

Declaration

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

Parameters

pipelines

An array of pipeline state objects to encode.

range

A range of indices for the array of samplers within the argument buffer. These values correspond to either the index IDs of a Metal shading language declaration or the index fields of MTLArgumentDescriptor objects.

See Also

Encoding Pipeline States

func setRenderPipelineState(MTLRenderPipelineState?, index: Int)

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

Required.

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