---
title: MTLType
framework: metal
role: symbol
role_heading: Class
path: metal/mtltype
---

# MTLType

A description of a data type.

## Declaration

```swift
class MTLType
```

## Topics

### Identifying the data type

- [dataType](metal/mtltype/datatype.md)

## Relationships

### Inherits From

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

### Inherited By

- [MTLArrayType](metal/mtlarraytype.md)
- [MTLPointerType](metal/mtlpointertype.md)
- [MTLStructType](metal/mtlstructtype.md)
- [MTLTensorReferenceType](metal/mtltensorreferencetype.md)
- [MTLTextureReferenceType](metal/mtltexturereferencetype.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

### Shader types

- [MTLDataType](metal/mtldatatype.md)
- [MTLArrayType](metal/mtlarraytype.md)
- [MTLStructType](metal/mtlstructtype.md)
- [MTLStructMember](metal/mtlstructmember.md)
- [MTLPointerType](metal/mtlpointertype.md)
- [MTLTextureReferenceType](metal/mtltexturereferencetype.md)
