---
title: "init(semantic:format:layoutIndex:offset:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/lowlevelmesh/attribute/init(semantic:format:layoutindex:offset:)"
---

# init(semantic:format:layoutIndex:offset:)

Creates an attribute for a low-level mesh.

## Declaration

```swift
init(semantic: LowLevelMesh.VertexSemantic, format: MTLVertexFormat, layoutIndex: Int = 0, offset: Int)
```
