<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSDataType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:@E@MPSDataType"
  },
  "title" : "MPSDataType"
}
-->

# MPSDataType

A value to specify a type of data.

```
enum MPSDataType
```

## Topics

### Constants

[`MPSDataType.floatBit`](/documentation/MetalPerformanceShaders/MPSDataType/floatBit)

A common bit for all floating point data types.

[`MPSDataType.float32`](/documentation/MetalPerformanceShaders/MPSDataType/float32)

A 32-bit floating point type (single precision).

### Enumeration Cases

[`MPSDataType.invalid`](/documentation/MetalPerformanceShaders/MPSDataType/invalid)

[`MPSDataType.float16`](/documentation/MetalPerformanceShaders/MPSDataType/float16)

[`MPSDataType.int16`](/documentation/MetalPerformanceShaders/MPSDataType/int16)

[`MPSDataType.int8`](/documentation/MetalPerformanceShaders/MPSDataType/int8)

[`MPSDataType.normalizedBit`](/documentation/MetalPerformanceShaders/MPSDataType/normalizedBit)

[`MPSDataType.signedBit`](/documentation/MetalPerformanceShaders/MPSDataType/signedBit)

[`MPSDataType.uInt16`](/documentation/MetalPerformanceShaders/MPSDataType/uInt16)

[`MPSDataType.uInt32`](/documentation/MetalPerformanceShaders/MPSDataType/uInt32)

[`MPSDataType.uInt8`](/documentation/MetalPerformanceShaders/MPSDataType/uInt8)

[`MPSDataType.unorm1`](/documentation/MetalPerformanceShaders/MPSDataType/unorm1)

[`MPSDataType.unorm8`](/documentation/MetalPerformanceShaders/MPSDataType/unorm8)

[`MPSDataType.alternateEncodingBit`](/documentation/MetalPerformanceShaders/MPSDataType/alternateEncodingBit)

[`MPSDataType.bFloat16`](/documentation/MetalPerformanceShaders/MPSDataType/bFloat16)

[`MPSDataType.bool`](/documentation/MetalPerformanceShaders/MPSDataType/bool)

[`MPSDataType.complexBit`](/documentation/MetalPerformanceShaders/MPSDataType/complexBit)

[`MPSDataType.complexFloat16`](/documentation/MetalPerformanceShaders/MPSDataType/complexFloat16)

[`MPSDataType.complexFloat32`](/documentation/MetalPerformanceShaders/MPSDataType/complexFloat32)

[`MPSDataType.int32`](/documentation/MetalPerformanceShaders/MPSDataType/int32)

[`MPSDataType.int4`](/documentation/MetalPerformanceShaders/MPSDataType/int4)

[`MPSDataType.int64`](/documentation/MetalPerformanceShaders/MPSDataType/int64)

[`MPSDataType.uInt4`](/documentation/MetalPerformanceShaders/MPSDataType/uInt4)

[`MPSDataType.uInt64`](/documentation/MetalPerformanceShaders/MPSDataType/uInt64)

### Type Properties

[`intBit`](/documentation/MetalPerformanceShaders/MPSDataType/intBit)



---

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)