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

# init(rawValue:)

Creates a blit option from a raw value.

## Declaration

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

## Parameters

- `rawValue`: The bitwise value of a blit option as an integer.

## Discussion

Discussion Use one of the MTLBlitOption type’s static properties, such as depthFromDepthStencil, stencilFromDepthStencil, and rowLinearPVRTC instead of creating a blit option yourself with this initializer.
