setComputePipelineStates(_:with:)
Encodes references to an array of compute pipeline states into the argument buffer.
Declaration
func setComputePipelineStates(_ pipelines: UnsafePointer<(any MTLComputePipelineState)?>, with range: NSRange)Parameters
- pipelines:
An array of pipeline states the method encodes.
- range:
A range of indices within the argument buffer for each element in
pipelines. The values correspond to either the index IDs of declarations in Metal Shading Language (MSL) or the Index property of Mtlargumentdescriptor instances.