---
title: attributes
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlvertexdescriptor/attributes
---

# attributes

An array of state data that describes how vertex attribute data is stored in memory and is mapped to arguments for a vertex shader function.

## Declaration

```swift
var attributes: MTLVertexAttributeDescriptorArray { get }
```

## See Also

### Accessing the vertex buffer layouts and vertex attributes

- [layouts](metal/mtlvertexdescriptor/layouts.md)
