<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLAttributeDescriptorArray",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLAttributeDescriptorArray"
  },
  "title" : "MTLAttributeDescriptorArray"
}
-->

# MTLAttributeDescriptorArray

An array of attribute descriptor objects.

```
class MTLAttributeDescriptorArray
```

## Overview

An [`MTLAttributeDescriptorArray`](/documentation/Metal/MTLAttributeDescriptorArray) defines the data format and index binding for the attribute argument table, using [`MTLAttributeDescriptor`](/documentation/Metal/MTLAttributeDescriptor) instances.

## Topics

### Accessing attribute state objects

[`subscript(_:)`](/documentation/Metal/MTLAttributeDescriptorArray/subscript(_:))

Returns the state of the specified attribute.

[`setObject:atIndexedSubscript:`](/documentation/Metal/MTLAttributeDescriptorArray/setObject:atIndexedSubscript:)

Sets state for the specified attribute.



---

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)