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

# offset

The offset, in bytes, from the start of the buffer that contains the attribute data to the start of the data itself.

## Declaration

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

## Discussion

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

## See Also

### Defining attribute location

- [bufferIndex](metal/mtlattributedescriptor/bufferindex.md)
- [format](metal/mtlattributedescriptor/format.md)
- [MTLAttributeFormat](metal/mtlattributeformat.md)
