---
title: MTLCounter
framework: metal
role: symbol
role_heading: Protocol
path: metal/mtlcounter
---

# MTLCounter

An individual counter a GPU device lists within one of its counter sets.

## Declaration

```swift
protocol MTLCounter : NSObjectProtocol, Sendable
```

## Overview

Overview You can determine which counters a GPU supports within a counter set (see MTLCounterSet) by checking the elements of its counters property. A counter’s name property typically matches one of the common counter set names that MTLCommonCounter defines. For more information, see Confirming which counters and counter sets a GPU supports.

## Topics

### Identifying a counter

- [name](metal/mtlcounter/name.md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Counters and counter sets

- [Confirming which counters and counter sets a GPU supports](metal/confirming-which-counters-and-counter-sets-a-gpu-supports.md)
- [MTLCounterSet](metal/mtlcounterset.md)
- [MTLCommonCounterSet](metal/mtlcommoncounterset.md)
- [MTLCommonCounter](metal/mtlcommoncounter.md)
