makeRenderPipelineState(descriptor:options:)
Synchronously creates a render pipeline state and reflection information in a tuple.
Declaration
func makeRenderPipelineState(descriptor: MTLRenderPipelineDescriptor, options: MTLPipelineOption) throws -> (any MTLRenderPipelineState, MTLRenderPipelineReflection?)Parameters
- descriptor:
An Mtlrenderpipelinedescriptor instance.
- options:
An Mtlpipelineoption instance that represents the reflection information you want the method to generate.
Return Value
A tuple with a new MTLRenderPipelineState instance and an MTLRenderPipelineReflection optional instance if the method completes successfully; otherwise Swift throws an error and Objective-C returns nil.
Discussion
Use the graphics-rendering pipeline state to configure a render pass by calling the setRenderPipelineState(_:) method of an MTLRenderCommandEncoder instance.