---
title: attributeType
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlvertexattribute/attributetype
---

# attributeType

The data type for the attribute, as declared in Metal shader source code.

## Declaration

```swift
var attributeType: MTLDataType { get }
```

## See Also

### Describing the attribute

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