setComputePipelineState(_:at:)
Encodes a reference to a compute pipeline state into the argument buffer.
Declaration
func setComputePipelineState(_ pipeline: (any MTLComputePipelineState)?, at 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.