---
title: "init(rawValue:)"
framework: metal
role: symbol
role_heading: Initializer
path: "metal/mtlcommoncounterset/init(rawvalue:)"
---

# init(rawValue:)

Creates a common counter set name from a raw value.

## Declaration

```swift
init(rawValue: String)
```

## Parameters

- `rawValue`: The name of a counter set as a string.

## Discussion

Discussion Use one of the MTLCommonCounterSet type’s static properties, such as timestamp, stageUtilization, and statistic instead of creating a common counter set instance yourself with this initializer.
