<!--
{
  "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/MTLCommonCounter",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@T@MTLCommonCounter"
  },
  "title" : "MTLCommonCounter"
}
-->

# MTLCommonCounter

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

```
struct MTLCommonCounter
```

## 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](/documentation/Metal/confirming-which-counters-and-counter-sets-a-gpu-supports).

## Topics

### Common counter names

[`timestamp`](/documentation/Metal/MTLCommonCounter/timestamp)

The common name for the counter that tracks the current time.

[`tessellationInputPatches`](/documentation/Metal/MTLCommonCounter/tessellationInputPatches)

The common name for the counter that tracks the number of tessellation patches a render pass sends to the tessellation stage.

[`vertexInvocations`](/documentation/Metal/MTLCommonCounter/vertexInvocations)

The common name for the counter that tracks the number of times a render pass calls any vertex shader.

[`postTessellationVertexInvocations`](/documentation/Metal/MTLCommonCounter/postTessellationVertexInvocations)

The common name for the counter that tracks the number of vertices a render pass sends to a post-tessellation vertex shader.

[`clipperInvocations`](/documentation/Metal/MTLCommonCounter/clipperInvocations)

The common name for the counter that tracks the number of primitives a render pass sends to the clip stage.

[`clipperPrimitivesOut`](/documentation/Metal/MTLCommonCounter/clipperPrimitivesOut)

The common name for the counter that tracks the number of primitives the clip stage produces during a render pass.

[`fragmentInvocations`](/documentation/Metal/MTLCommonCounter/fragmentInvocations)

The common name for the counter that tracks the number of times a render pass calls fragment shaders.

[`fragmentsPassed`](/documentation/Metal/MTLCommonCounter/fragmentsPassed)

The common name for the counter that tracks the number of fragments a render pass sends to the visibility and blend stages.

[`computeKernelInvocations`](/documentation/Metal/MTLCommonCounter/computeKernelInvocations)

The common name for the counter that tracks the number of times a pass invokes any compute kernel.

[`totalCycles`](/documentation/Metal/MTLCommonCounter/totalCycles)

The common name for the counter that tracks the total number of cycles the GPU uses to run a pass.

[`vertexCycles`](/documentation/Metal/MTLCommonCounter/vertexCycles)

The common name for the counter that tracks the number of cycles the GPU uses to run vertex shaders during a pass.

[`postTessellationVertexCycles`](/documentation/Metal/MTLCommonCounter/postTessellationVertexCycles)

The common name for the counter that tracks the number of cycles the GPU uses to run post-tessellation vertex shaders during a pass.

[`fragmentCycles`](/documentation/Metal/MTLCommonCounter/fragmentCycles)

The common name for the counter that tracks the number of cycles the GPU uses to run fragment shaders during a pass.

[`tessellationCycles`](/documentation/Metal/MTLCommonCounter/tessellationCycles)

The common name for the counter that tracks the number of cycles the GPU uses to run the tessellation stage during a pass.

[`renderTargetWriteCycles`](/documentation/Metal/MTLCommonCounter/renderTargetWriteCycles)

The common name for the counter that tracks the number of cycles the GPU uses to write data to render targets during a render pass.

### Swift support

[`init(rawValue:)`](/documentation/Metal/MTLCommonCounter/init(rawValue:))

Creates a common counter name from a raw value.



---

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)