---
title: "subscript(_:)"
framework: metal
role: symbol
role_heading: Instance Subscript
path: "metal/mtlattributedescriptorarray/subscript(_:)"
---

# subscript(_:)

Returns the state of the specified attribute.

## Declaration

```swift
subscript(index: Int) -> MTLAttributeDescriptor! { get set }
```

## Parameters

- `index`: A specified index in the argument table bindings.

## Return Value

Return Value The attribute descriptor for data bound at this index.
