---
title: "init(location:length:)"
framework: metal
role: symbol
role_heading: Initializer
path: "metal/mtlindirectcommandbufferexecutionrange/init(location:length:)"
---

# init(location:length:)

Initializes an command execution range.

## Declaration

```swift
init(location: UInt32, length: UInt32)
```

## Parameters

- `location`: The start index of the range.
- `length`: The number of items in the range.

## See Also

### Creating a command execution range

- [init()](metal/mtlindirectcommandbufferexecutionrange/init().md)
- [MTLIndirectCommandBufferExecutionRangeMake(_:_:)](metal/mtlindirectcommandbufferexecutionrangemake(_:_:).md)
