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

# subscript(_:)

Returns the state of the specified vertex attribute.

## Declaration

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

## Parameters

- `index`: A specified index in the array of vertex attribute states.

## Return Value

Return Value A descriptor that contains the vertex attribute state.

## See Also

### Related Documentation

- [Metal Shading Language Guide](apple-archive/documentation/Metal/Reference/MetalShadingLanguageGuide/Introduction.md)
- [Metal Programming Guide](apple-archive/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Introduction.md)
