<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLCounterSet/counters",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLCounterSet(py)counters"
  },
  "title" : "counters"
}
-->

# counters

An array of the counter instances a GPU device supports.

```
var counters: [any MTLCounter] { get }
```

## Discussion

Check whether a GPU device supports a specific counter by comparing its common name (see [`MTLCommonCounter`](/documentation/Metal/MTLCommonCounter)) with each element in the property’s array.

> Important:
> Some GPUs may only support some of the counters within a counter set.

For more information, see [Confirming which counters and counter sets a GPU supports](/documentation/Metal/confirming-which-counters-and-counter-sets-a-gpu-supports).

---

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)