---
title: offset
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlvertexattributedescriptor/offset
---

# offset

The location of an attribute in vertex data, determined by the byte offset from the start of the vertex data.

## Declaration

```swift
var offset: Int { get set }
```

## Discussion

Discussion Check the Metal feature set tables (PDF) for potential alignment restrictions.

## See Also

### Organizing the vertex attribute

- [format](metal/mtlvertexattributedescriptor/format.md)
- [bufferIndex](metal/mtlvertexattributedescriptor/bufferindex.md)
- [MTLVertexFormat](metal/mtlvertexformat.md)
