<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLType",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLType"
  },
  "title" : "MTLType"
}
-->

# MTLType

A description of a data type.

```
class MTLType
```

## Topics

### Identifying the data type

[`dataType`](/documentation/Metal/MTLType/dataType)

The data type of the function argument.

## Relationships

### Inherited By

[`MTLTextureReferenceType`](/documentation/Metal/MTLTextureReferenceType)

[`MTLStructType`](/documentation/Metal/MTLStructType)

[`MTLTensorReferenceType`](/documentation/Metal/MTLTensorReferenceType)

[`MTLArrayType`](/documentation/Metal/MTLArrayType)

[`MTLPointerType`](/documentation/Metal/MTLPointerType)

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)