Instance Method

makeRenderPipelineState(descriptor:options:completionHandler:)

Asynchronously creates a render pipeline state object and associated reflection information.

Required.

Declaration

func makeRenderPipelineState(descriptor: MTLRenderPipelineDescriptor, options: MTLPipelineOption, completionHandler: @escaping MTLNewRenderPipelineStateWithReflectionCompletionHandler)

Parameters

descriptor

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

options

The type of reflection information to return.

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

Pipeline Options

struct MTLPipelineOption

The compilation options that determine which argument information to provide.

Completion Handler

typealias MTLNewRenderPipelineStateWithReflectionCompletionHandler

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software