<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLIndirectCommandBufferDescriptor/inheritPipelineState",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLIndirectCommandBufferDescriptor(py)inheritPipelineState"
  },
  "title" : "inheritPipelineState"
}
-->

# inheritPipelineState

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

```
var inheritPipelineState: Bool { get set }
```

## Discussion

The default value is <doc://com.apple.documentation/documentation/Swift/false>.
If the value is <doc://com.apple.documentation/documentation/Swift/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 <doc://com.apple.documentation/documentation/Swift/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 <doc://com.apple.documentation/documentation/Swift/true>.
If you need your app to run on earlier versions of iOS, use an availability attribute to set the property conditionally:

```swift
if #available(iOS 13.0, tvOS 13, *) {
    descriptor.inheritPipelineState = true
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)