<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLIndirectCommandBufferExecutionRange",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@SA@MTLIndirectCommandBufferExecutionRange"
  },
  "title" : "MTLIndirectCommandBufferExecutionRange"
}
-->

# MTLIndirectCommandBufferExecutionRange

A range of commands in an indirect command buffer.

```
struct MTLIndirectCommandBufferExecutionRange
```

## Topics

### Creating a command execution range

[`init()`](/documentation/Metal/MTLIndirectCommandBufferExecutionRange/init())

Initializes an empty command execution range.

[`init(location:length:)`](/documentation/Metal/MTLIndirectCommandBufferExecutionRange/init(location:length:))

Initializes an command execution range.

[`MTLIndirectCommandBufferExecutionRangeMake(_:_:)`](/documentation/Metal/MTLIndirectCommandBufferExecutionRangeMake(_:_:))

Creates a command execution range.

### Examining the range

[`location`](/documentation/Metal/MTLIndirectCommandBufferExecutionRange/location)

The first index in the command execution range.

[`length`](/documentation/Metal/MTLIndirectCommandBufferExecutionRange/length)

The number of items in the command execution range.



---

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)