<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTL4AccelerationStructureMotionTriangleGeometryDescriptor/indexBuffer",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTL4AccelerationStructureMotionTriangleGeometryDescriptor(py)indexBuffer"
  },
  "title" : "indexBuffer"
}
-->

# indexBuffer

Assigns an optional index buffer containing references to vertices in the vertex buffers you reference through the
vertex buffers property.

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

## Discussion

You can set this property to `0`, the default, to avoid specifying an index buffer. All keyframes share the same
index buffer.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)