Instance Method

makeRenderPipelineState(descriptor:completionHandler:)

Asynchronously creates a render pipeline state object.

Required.

Declaration

func makeRenderPipelineState(descriptor: MTLRenderPipelineDescriptor, completionHandler: @escaping MTLNewRenderPipelineStateCompletionHandler)

Parameters

descriptor

A descriptor object that contains graphics rendering state properties, including rasterization, visibility, function, and blend state.

completionHandler

A block of code that's invoked when the logic to create the render pipeline state object is completed.

Discussion

To use the graphics rendering pipeline state for a rendering pass, call the setRenderPipelineState(_:) method of a MTLRenderCommandEncoder object with the MTLRenderPipelineState object.

Topics

Completion Handler

typealias MTLNewRenderPipelineStateCompletionHandler

A block of code that is invoked when the logic to create a MTLRenderPipelineState object is completed.