<!--
{
  "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/MTLCounterResultStatistic/init(tessellationInputPatches:vertexInvocations:postTessellationVertexInvocations:clipperInvocations:clipperPrimitivesOut:fragmentInvocations:fragmentsPassed:computeKernelInvocations:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So25MTLCounterResultStatistica24tessellationInputPatches17vertexInvocations022postTessellationVertexH007clipperH00L13PrimitivesOut08fragmentH015fragmentsPassed013computeKernelH0ABs6UInt64V_A7Ltcfc"
  },
  "title" : "init(tessellationInputPatches:vertexInvocations:postTessellationVertexInvocations:clipperInvocations:clipperPrimitivesOut:fragmentInvocations:fragmentsPassed:computeKernelInvocations:)"
}
-->

# init(tessellationInputPatches:vertexInvocations:postTessellationVertexInvocations:clipperInvocations:clipperPrimitivesOut:fragmentInvocations:fragmentsPassed:computeKernelInvocations:)

Creates a statistics result from statistic values.

```
init(tessellationInputPatches: UInt64, vertexInvocations: UInt64, postTessellationVertexInvocations: UInt64, clipperInvocations: UInt64, clipperPrimitivesOut: UInt64, fragmentInvocations: UInt64, fragmentsPassed: UInt64, computeKernelInvocations: UInt64)
```

## Parameters

`tessellationInputPatches`

The number of tessellation patches the render pass sends to the tessellation stage.

`vertexInvocations`

The number of times the render pass calls vertex shaders.

`postTessellationVertexInvocations`

The number of vertices the tessellation stage creates.

`clipperInvocations`

The number of primitives the clip stage consumes.

`clipperPrimitivesOut`

The number of primitives the clip stage produces.

`fragmentInvocations`

The number of times the render pass calls fragment shaders.

`fragmentsPassed`

The number of fragments the render pass sends to the visibility and blend stages.

`computeKernelInvocations`

The number of times the pass calls compute kernels.

## Discussion

Metal creates [`MTLCounterResultStatistic`](/documentation/Metal/MTLCounterResultStatistic) instances for you when you resolve the counter set’s data (see [Converting a GPU’s counter data into a readable format](/documentation/Metal/converting-a-gpus-counter-data-into-a-readable-format)). There’s no reason for you to manually create one in your app.

---

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)