---
title: offset
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlvertexattribute/offset
---

# offset

The offset, in bytes, of vertex data for the attribute in a vertex buffer, relative to the start of data for each vertex.

## Declaration

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

## Discussion

Discussion For example, if a vertex buffer contains interleaved data for two attributes, the first attribute’s offset is typically zero, and the second attribute’s offset is at least the data size of the first attribute.

## See Also

### Inspecting a Vertex Attribute

- [name](modelio/mdlvertexattribute/name.md)
- [format](modelio/mdlvertexattribute/format.md)
- [bufferIndex](modelio/mdlvertexattribute/bufferindex.md)
- [initializationValue](modelio/mdlvertexattribute/initializationvalue.md)
