---
title: boundingBoxBufferOffset
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlaccelerationstructureboundingboxgeometrydescriptor/boundingboxbufferoffset
---

# boundingBoxBufferOffset

The offset, in bytes, to the first bounding box in the buffer.

## Declaration

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

## Discussion

Discussion The offset needs to be a multiple of boundingBoxStride. Check the Metal feature set tables (PDF) for potential alignment restrictions.

## See Also

### Specifying bounding boxes data

- [boundingBoxBuffer](metal/mtlaccelerationstructureboundingboxgeometrydescriptor/boundingboxbuffer.md)
- [boundingBoxStride](metal/mtlaccelerationstructureboundingboxgeometrydescriptor/boundingboxstride.md)
