Asynchronously creates a render pipeline state object and associated reflection information.
Required.
SDKs
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Metal
Declaration
- (void)newRenderPipelineStateWithDescriptor:(MTLRender Pipeline Descriptor *)descriptor options:(MTLPipeline Option)options completionHandler:(MTLNew Render Pipeline State With Reflection Completion Handler)completionHandler;
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 set
method of a MTLRender
object with the MTLRender
object.