<!--
{
  "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/MTLVertexAttributeDescriptorArray",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLVertexAttributeDescriptorArray"
  },
  "title" : "MTLVertexAttributeDescriptorArray"
}
-->

# MTLVertexAttributeDescriptorArray

An array of vertex attribute descriptor instances.

```
class MTLVertexAttributeDescriptorArray
```

## Overview

An [`MTLVertexAttributeDescriptorArray`](/documentation/Metal/MTLVertexAttributeDescriptorArray) instance is an array of instances that defines how vertex attribute data is formatted and assigned to an index in the attribute argument table. The methods of [`MTLVertexAttributeDescriptorArray`](/documentation/Metal/MTLVertexAttributeDescriptorArray) set or retrieve the attribute formatting information from the array.

## Topics

### Accessing a specified vertex attribute

[`-  objectAtIndexedSubscript:`](/documentation/Metal/MTLVertexAttributeDescriptorArray/subscript(_:))

Returns the state of the specified vertex attribute.

[`-  setObject:atIndexedSubscript:`](/documentation/Metal/MTLVertexAttributeDescriptorArray/setObject:atIndexedSubscript:)

Sets state for the specified vertex attribute.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

---

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)