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

# MTLIndirectCommandBufferDescriptor

A configuration you create to customize an indirect command buffer.

```
class MTLIndirectCommandBufferDescriptor
```

## Topics

### Declaring command types to encode

[`commandTypes`](/documentation/Metal/MTLIndirectCommandBufferDescriptor/commandTypes)

The set of command types that you can encode into the indirect command buffer.

### Declaring command inheritance

[`inheritBuffers`](/documentation/Metal/MTLIndirectCommandBufferDescriptor/inheritBuffers)

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

[`inheritPipelineState`](/documentation/Metal/MTLIndirectCommandBufferDescriptor/inheritPipelineState)

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

### Declaring the maximum number of argument buffers per command

[`maxVertexBufferBindCount`](/documentation/Metal/MTLIndirectCommandBufferDescriptor/maxVertexBufferBindCount)

The maximum number of buffers that you can set per command for the vertex stage.

[`maxFragmentBufferBindCount`](/documentation/Metal/MTLIndirectCommandBufferDescriptor/maxFragmentBufferBindCount)

The maximum number of buffers that you can set per command for the fragment stage.

[`maxKernelBufferBindCount`](/documentation/Metal/MTLIndirectCommandBufferDescriptor/maxKernelBufferBindCount)

The maximum number of buffers that you can set per command for the compute kernel.



---

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)