<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLBlitCommandEncoder/resetCommandsInBuffer(_:range:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So21MTLBlitCommandEncoderP5MetalE21resetCommandsInBuffer_5rangeySo011MTLIndirectbH0_p_SnySiGtF"
  },
  "title" : "resetCommandsInBuffer(_:range:)"
}
-->

# resetCommandsInBuffer(_:range:)

Encodes a command that resets a range of commands in an indirect command buffer.

```
func resetCommandsInBuffer(_ buffer: any MTLIndirectCommandBuffer, range: Range<Int>)
```

## Parameters

`buffer`

An indirect command buffer the command resets.

`range`

A range of commands within `buffer`.

---

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)