Contents

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 MTLComputePipelineState

Parameters

Discussion

Use the compute pipeline state to configure a compute pass by calling the setComputePipelineState(_:) method of an MTLComputeCommandEncoder instance.

See Also

Creating compute pipeline states