Contents

makeRenderPipelineState(descriptor:completionHandler:)

Asynchronously creates a render pipeline state.

Declaration

func makeRenderPipelineState(descriptor: MTLRenderPipelineDescriptor, completionHandler: @escaping  @Sendable ((any MTLRenderPipelineState)?, (any Error)?) -> Void)
func makeRenderPipelineState(descriptor: MTLRenderPipelineDescriptor) async throws -> any MTLRenderPipelineState

Parameters

  • descriptor:

    An Mtlrenderpipelinedescriptor instance.

  • completionHandler:

    A Swift closure or an Objective-C block the method calls when it finishes creating the render pipeline state.

Discussion

Use the graphics-rendering pipeline state to configure a render pass by calling the setRenderPipelineState(_:) method of an MTLRenderCommandEncoder instance.

See Also

Creating render pipeline states with vertex shaders