---
title: vertexAttributes
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlfunction/vertexattributes
---

# vertexAttributes

An array that describes the vertex input attributes to a vertex function.

## Declaration

```swift
var vertexAttributes: [MTLVertexAttribute]? { get }
```

## See Also

### Retrieving function attributes

- [stageInputAttributes](metal/mtlfunction/stageinputattributes.md)
