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

# init(rawValue:)

Creates a set of error options from a raw integer value.

## Declaration

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

## Parameters

- `rawValue`: The set of flags to use.

## Discussion

Discussion Use the MTLCommandBufferErrorOption structure’s type properties, such as encoderExecutionStatus, instead of this initializer.
