<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLRenderStages/init(rawValue:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So15MTLRenderStagesV8rawValueABSu_tcfc"
  },
  "title" : "init(rawValue:)"
}
-->

# init(rawValue:)

Creates a render stage from a raw value.

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

## Parameters

`rawValue`

A bit field value of a render stage as an integer.

## Discussion

Use of the [`MTLRenderStages`](/documentation/Metal/MTLRenderStages) type’s static properties, such as [`mesh`](/documentation/Metal/MTLRenderStages/mesh), [`vertex`](/documentation/Metal/MTLRenderStages/vertex), or [`fragment`](/documentation/Metal/MTLRenderStages/fragment) instead of creating a render stage instance yourself with this initializer.

---

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)