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

# indexBuffer

Assigns an optional index buffer containing references to control points in the control point buffer.

## Declaration

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

## Discussion

Discussion Each index represents the first control point of a curve segment. You are responsible for ensuring the buffer address of the range is not zero.
