---
title: "invalidateCounterRange(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtl4counterheap/invalidatecounterrange(_:)"
---

# invalidateCounterRange(_:)

Invalidates a range of entries in this counter heap.

## Declaration

```swift
func invalidateCounterRange(_ range: Range<Int>)
```

## Parameters

- `range`: A heap index range to invalidate.

## Discussion

Discussion The effect of this call is immediate on the CPU timeline. You are responsible for ensuring that this counter heap is not currently in use on the GPU. note: Invalidated entries produce 0 when resolved.
