Sets the current render pipeline state object.
- iOS 8.0+
- macOS 10.11+
- tvOS 9.0+
- Mac Catalyst 13.0+Beta
The rendering pipeline or tile shading state to use for future commands.
The default render pipeline state is
nil. You must set a render pipeline state before issuing any drawing or tile commands. The render pipeline state must be compatible with the attachment configuration specified by the render pass descriptor.
You can set the pipeline state multiple times during the lifetime of an encoder. For example, different models may have different data and a different set of rendering instructions. Changing the pipeline state object does not affect any commands encoded before the change.