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

# init(rawValue:)

Creates a GPU family instance from a raw value.

## Declaration

```swift
init?(rawValue: Int)
```

## Parameters

- `rawValue`: An integer value that represents a GPU family.

## Discussion

Discussion You don’t need to call this initializer because it’s part of how Swift represents an enumeration from an Objective-C framework. tip: Use one of the MTLGPUFamily cases, such as MTLGPUFamily.metal3, instead of this initializer.
