makeComputePipelineState(function:)
Synchronously creates a compute pipeline state with a function instance.
Declaration
func makeComputePipelineState(function computeFunction: any MTLFunction) throws -> any MTLComputePipelineStateParameters
- computeFunction:
An Mtlfunction instance.
Discussion
Use the compute pipeline state to configure a compute pass by calling the setComputePipelineState(_:) method of an MTLComputeCommandEncoder instance.