Contents

inheritPipelineState

A Boolean value that determines where commands in the indirect command buffer get their pipeline state from when you execute them.

Declaration

var inheritPipelineState: Bool { get set }

Discussion

The default value is false. If the value is false, set the pipeline state object when you encode the commands into the indirect command buffer. The commands ignore any pipeline state object set on the parent encoder.

If you set the value to true, don’t set a pipeline state object when you encode commands into the indirect command buffer. The commands use (inherit) the pipeline stage object that you set on the parent encoder.

This property doesn’t exist in iOS 12 and earlier, and tvOS 12 and earlier. If you create an indirect command buffer on those systems, it inherits the pipeline state, exactly as if the property existed, with a value of true. If you need your app to run on earlier versions of iOS, use an availability attribute to set the property conditionally:

See Also

Declaring command inheritance