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

# bufferIndex

The index in the argument table for the associated vertex buffer.

```
var bufferIndex: Int { get set }
```

## See Also

[`setVertexBuffers:offsets:withRange:`](/documentation/Metal/MTLRenderCommandEncoder/setVertexBuffers:offsets:withRange:)

Assigns multiple buffers to a range of entries in the vertex shader argument table.

[`setVertexBuffer(_:offset:index:)`](/documentation/Metal/MTLRenderCommandEncoder/setVertexBuffer(_:offset:index:))

Assigns a buffer to an entry in the vertex shader argument table.



---

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)