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

# init(rawValue:)

Creates a render stage from a raw value.

## Declaration

```swift
init(rawValue: UInt)
```

## Parameters

- `rawValue`: A bit field value of a render stage as an integer.

## Discussion

Discussion Use of the MTLRenderStages type’s static properties, such as mesh, vertex, or fragment instead of creating a render stage instance yourself with this initializer.
