---
title: indexBufferOffset
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlaccelerationstructuretrianglegeometrydescriptor/indexbufferoffset
---

# indexBufferOffset

The offset, in bytes, to the first index in the buffer.

## Declaration

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

## Discussion

Discussion The offset needs to be a multiple of the index data type size and aligned to the index data type’s alignment. Check the Metal feature set tables (PDF) for potential alignment restrictions.

## See Also

### Configuring index data

- [indexType](metal/mtlaccelerationstructuretrianglegeometrydescriptor/indextype.md)
- [indexBuffer](metal/mtlaccelerationstructuretrianglegeometrydescriptor/indexbuffer.md)
