---
title: boundingBoxBuffer
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlaccelerationstructureboundingboxgeometrydescriptor/boundingboxbuffer
---

# boundingBoxBuffer

A buffer that contains an array of bounding box structures.

## Declaration

```swift
var boundingBoxBuffer: (any MTLBuffer)? { get set }
```

## Discussion

Discussion The buffer contains an array of MTLAxisAlignedBoundingBox structures, one for each bounding box in the geometry.

## See Also

### Specifying bounding boxes data

- [boundingBoxBufferOffset](metal/mtlaccelerationstructureboundingboxgeometrydescriptor/boundingboxbufferoffset.md)
- [boundingBoxStride](metal/mtlaccelerationstructureboundingboxgeometrydescriptor/boundingboxstride.md)
