---
title: "MTLIndirectCommandBufferExecutionRangeMake(_:_:)"
framework: metal
role: symbol
role_heading: Function
path: "metal/mtlindirectcommandbufferexecutionrangemake(_:_:)"
---

# MTLIndirectCommandBufferExecutionRangeMake(_:_:)

Creates a command execution range.

## Declaration

```swift
func MTLIndirectCommandBufferExecutionRangeMake(_ location: UInt32, _ length: UInt32) -> MTLIndirectCommandBufferExecutionRange
```

## Parameters

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

## See Also

### Indirect command buffers

- [Creating an indirect command buffer](metal/creating-an-indirect-command-buffer.md)
- [Specifying drawing and dispatch arguments indirectly](metal/specifying-drawing-and-dispatch-arguments-indirectly.md)
- [Encoding indirect command buffers on the CPU](metal/encoding-indirect-command-buffers-on-the-cpu.md)
- [Encoding indirect command buffers on the GPU](metal/encoding-indirect-command-buffers-on-the-gpu.md)
- [MTLIndirectCommandBuffer](metal/mtlindirectcommandbuffer.md)
- [MTLIndirectCommandBufferDescriptor](metal/mtlindirectcommandbufferdescriptor.md)
- [MTLIndirectCommandType](metal/mtlindirectcommandtype.md)
- [MTLIndirectCommandBufferExecutionRange](metal/mtlindirectcommandbufferexecutionrange.md)
