---
title: counters
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcounterset/counters
---

# counters

An array of the counter instances a GPU device supports.

## Declaration

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

## Mentioned in

Confirming which counters and counter sets a GPU supports

## Discussion

Discussion Check whether a GPU device supports a specific counter by comparing its common name (see 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.
