---
title: indexBuffer
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4accelerationstructuretrianglegeometrydescriptor/indexbuffer
---

# indexBuffer

Sets an optional index buffer containing references to vertices in the vertexBuffer.

## Declaration

```swift
var indexBuffer: MTL4BufferRange { get set }
```

## Discussion

Discussion You can set this property to 0, the default, to avoid specifying an index buffer.
