Instance Method

newRenderPipelineStateWithDescriptor:completionHandler:

Asynchronously creates a render pipeline state object.

Required.

Declaration

- (void)newRenderPipelineStateWithDescriptor:(MTLRenderPipelineDescriptor *)descriptor completionHandler:(MTLNewRenderPipelineStateCompletionHandler)completionHandler;

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

MTLNewRenderPipelineStateCompletionHandler

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

See Also

Creating a Render Pipeline

- newRenderPipelineStateWithDescriptor:options:completionHandler:

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

Required.

- newRenderPipelineStateWithDescriptor:error:

Synchronously creates a render pipeline state object.

Required.

- newRenderPipelineStateWithDescriptor:options:reflection:error:

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

Required.

- newRenderPipelineStateWithTileDescriptor:options:completionHandler:

Asynchronously creates a render pipeline state object, and associated reflection information, for a tile shader.

Required.

- newRenderPipelineStateWithTileDescriptor:options:reflection:error:

Synchronously creates a render pipeline state object, and associated reflection information, for a tile shader.

Required.