setRenderPipelineState(_:)
Sets the render pipeline state for the command.
Declaration
func setRenderPipelineState(_ pipelineState: any MTLRenderPipelineState)Parameters
- pipelineState:
The rendering pipeline state object to use.
Discussion
You don’t need to call this method if you create an indirect command buffer with its inheritPipelineState property equal to true. The command gets the pipeline state from the parent encoder when it runs.
If you created the indirect command buffer with inheritPipelineState set to false, you need to set the pipeline state prior to encoding the drawing command.