---
title: MTLCounterResultStatistic
framework: metal
role: symbol
role_heading: Structure
path: metal/mtlcounterresultstatistic
---

# MTLCounterResultStatistic

The data structure for storing the data you resolve from a statistic counter set.

## Declaration

```swift
struct MTLCounterResultStatistic
```

## Mentioned in

Converting a GPU’s counter data into a readable format

## Overview

Overview For steps that explain how to resolve data from a counter set, such as statistic, see Converting a GPU’s counter data into a readable format.

## Topics

### Statistics values

- [tessellationInputPatches](metal/mtlcounterresultstatistic/tessellationinputpatches.md)
- [vertexInvocations](metal/mtlcounterresultstatistic/vertexinvocations.md)
- [postTessellationVertexInvocations](metal/mtlcounterresultstatistic/posttessellationvertexinvocations.md)
- [clipperInvocations](metal/mtlcounterresultstatistic/clipperinvocations.md)
- [clipperPrimitivesOut](metal/mtlcounterresultstatistic/clipperprimitivesout.md)
- [fragmentInvocations](metal/mtlcounterresultstatistic/fragmentinvocations.md)
- [fragmentsPassed](metal/mtlcounterresultstatistic/fragmentspassed.md)
- [computeKernelInvocations](metal/mtlcounterresultstatistic/computekernelinvocations.md)

### Swift support

- [init()](metal/mtlcounterresultstatistic/init().md)
- [init(tessellationInputPatches:vertexInvocations:postTessellationVertexInvocations:clipperInvocations:clipperPrimitivesOut:fragmentInvocations:fragmentsPassed:computeKernelInvocations:)](metal/mtlcounterresultstatistic/init(tessellationinputpatches:vertexinvocations:posttessellationvertexinvocations:clipperinvocations:clipperprimitivesout:fragmentinvocations:fragmentspassed:computekernelinvocations:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Sendable](swift/sendable.md)

## See Also

### Counter sample data output

- [Converting a GPU’s counter data into a readable format](metal/converting-a-gpus-counter-data-into-a-readable-format.md)
- [MTLCounterResultTimestamp](metal/mtlcounterresulttimestamp.md)
- [MTLCounterResultStageUtilization](metal/mtlcounterresultstageutilization.md)
- [MTLCounterErrorValue](metal/mtlcountererrorvalue.md)
