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

# attributeType

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

## Declaration

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

## See Also

### Reading an attribute’s properties

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