Contents

makeComputePipelineState(function:)

Synchronously creates a compute pipeline state with a function instance.

Declaration

func makeComputePipelineState(function computeFunction: any MTLFunction) 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