<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTL4CounterHeap",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTL4CounterHeap"
  },
  "title" : "MTL4CounterHeap"
}
-->

# MTL4CounterHeap

Represents an opaque, driver-controlled section of memory that can store GPU counter data.

```
protocol MTL4CounterHeap : NSObjectProtocol
```

## Overview

The data instances that this type stores correspond to the [`MTL4CounterHeapType`](/documentation/Metal/MTL4CounterHeapType) heap type that you assign at creation time.

---

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)