Instance Method

setRenderPipelineState(_:)

Sets the render pipeline state object used by the command.

Required.

Declaration

func setRenderPipelineState(_ pipelineState: MTLRenderPipelineState)

Parameters

pipelineState

The rendering pipeline state object to use.

Discussion

If you created the indirect command buffer with inheritPipelineState set to true, do not call this method. The command gets the pipeline state object from the parent encoder when you execute the command.

If you created the indirect command buffer with inheritPipelineState set to false, you must set the pipeline state prior to encoding the drawing command.

See Also

Setting Command Arguments

func setVertexBuffer(MTLBuffer, offset: Int, at: Int)

Sets a vertex buffer argument for the command.

Required.

func setFragmentBuffer(MTLBuffer, offset: Int, at: Int)

Sets a fragment buffer argument for the command.

Required.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software