---
title: init()
framework: metal
role: symbol
role_heading: Initializer
path: metal/mtlcounterresultstatistic/init()
---

# init()

Creates a default statistics result.

## Declaration

```swift
init()
```

## Discussion

Discussion Metal creates MTLCounterResultStatistic instances for you when you resolve the counter set’s data (see Converting a GPU’s counter data into a readable format). There’s no reason for you to manually create one in your app.

## See Also

### Swift support

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