makeComputePipelineState(function:options:reflection:)
Synchronously creates a compute pipeline state and reflection with a function instance.
Declaration
func makeComputePipelineState(function computeFunction: any MTLFunction, options: MTLPipelineOption, reflection: AutoreleasingUnsafeMutablePointer<MTLAutoreleasedComputePipelineReflection?>?) throws -> any MTLComputePipelineStateParameters
- computeFunction:
An Mtlfunction instance.
- options:
An Mtlpipelineoption instance that represents the reflection information you want the method to generate.
- reflection:
In Swift, an optional pointer to an Mtlautoreleasedcomputepipelinereflection optional. In Objective-C, a pointer to an Mtlautoreleasedcomputepipelinereflection instance.
Discussion
Use the compute pipeline state to configure a compute pass by calling the setComputePipelineState(_:) method of an MTLComputeCommandEncoder instance.