---
title: attributeIndex
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlvertexattribute/attributeindex
---

# attributeIndex

The index of the attribute, as declared in Metal shader source code.

## Declaration

```swift
var attributeIndex: Int { get }
```

## See Also

### Describing the attribute

- [name](metal/mtlvertexattribute/name.md)
- [attributeType](metal/mtlvertexattribute/attributetype.md)
- [isActive](metal/mtlvertexattribute/isactive.md)
- [isPatchControlPointData](metal/mtlvertexattribute/ispatchcontrolpointdata.md)
- [isPatchData](metal/mtlvertexattribute/ispatchdata.md)
