---
title: MTLAttribute
framework: metal
role: symbol
role_heading: Class
path: metal/mtlattribute
---

# MTLAttribute

An object that describes an attribute defined in the stage-in argument for a shader.

## Declaration

```swift
class MTLAttribute
```

## Topics

### Reading an attribute’s properties

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

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Function arguments

- [MTLVertexAttribute](metal/mtlvertexattribute.md)
- [MTLArgument](metal/mtlargument.md)
- [MTLAutoreleasedArgument](metal/mtlautoreleasedargument.md)
- [MTLArgumentType](metal/mtlargumenttype.md)
- [MTLArgumentAccess](metal/mtlargumentaccess.md)
