makeRenderPipelineState(descriptor:)
Synchronously creates a render pipeline state.
Declaration
func makeRenderPipelineState(descriptor: MTLRenderPipelineDescriptor) throws -> any MTLRenderPipelineStateParameters
- descriptor:
An Mtlrenderpipelinedescriptor instance.
Return Value
A new MTLRenderPipelineState 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.