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

# init(rawValue:)

Creates a vertex format from a raw integer value.

## Declaration

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

## Parameters

- `rawValue`: The underlying integer value that represents a vertex format.

## Discussion

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