---
title: counterSets
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtldevice/countersets
---

# counterSets

The counter sets supported by the device object.

## Declaration

```swift
var counterSets: [any MTLCounterSet]? { get }
```

## Mentioned in

Confirming which counters and counter sets a GPU supports

## See Also

### Sampling a GPU device’s counters

- [supportsCounterSampling(_:)](metal/mtldevice/supportscountersampling(_:).md)
- [MTLCounterSamplingPoint](metal/mtlcountersamplingpoint.md)
- [makeCounterSampleBuffer(descriptor:)](metal/mtldevice/makecountersamplebuffer(descriptor:).md)
