---
title: MTLCommonCounter
framework: metal
role: symbol
role_heading: Structure
path: metal/mtlcommoncounter
---

# MTLCommonCounter

The name of a specific counter that can appear in a GPU device’s counter sets.

## Declaration

```swift
struct MTLCommonCounter
```

## Mentioned in

Confirming which counters and counter sets a GPU supports

## Overview

Overview This type defines the constants that let a GPU device declare which counters it supports within a counter set. For more information, see Confirming which counters and counter sets a GPU supports.

## Topics

### Common counter names

- [timestamp](metal/mtlcommoncounter/timestamp.md)
- [tessellationInputPatches](metal/mtlcommoncounter/tessellationinputpatches.md)
- [vertexInvocations](metal/mtlcommoncounter/vertexinvocations.md)
- [postTessellationVertexInvocations](metal/mtlcommoncounter/posttessellationvertexinvocations.md)
- [clipperInvocations](metal/mtlcommoncounter/clipperinvocations.md)
- [clipperPrimitivesOut](metal/mtlcommoncounter/clipperprimitivesout.md)
- [fragmentInvocations](metal/mtlcommoncounter/fragmentinvocations.md)
- [fragmentsPassed](metal/mtlcommoncounter/fragmentspassed.md)
- [computeKernelInvocations](metal/mtlcommoncounter/computekernelinvocations.md)
- [totalCycles](metal/mtlcommoncounter/totalcycles.md)
- [vertexCycles](metal/mtlcommoncounter/vertexcycles.md)
- [postTessellationVertexCycles](metal/mtlcommoncounter/posttessellationvertexcycles.md)
- [fragmentCycles](metal/mtlcommoncounter/fragmentcycles.md)
- [tessellationCycles](metal/mtlcommoncounter/tessellationcycles.md)
- [renderTargetWriteCycles](metal/mtlcommoncounter/rendertargetwritecycles.md)

### Swift support

- [init(rawValue:)](metal/mtlcommoncounter/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.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)
- [MTLCounter](metal/mtlcounter.md)
