Contents

makeComputePipelineState(descriptor:options:reflection:)

Synchronously creates a compute pipeline state and reflection information.

Declaration

func makeComputePipelineState(descriptor: MTLComputePipelineDescriptor, 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