<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSImage/precision",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSImage(py)precision"
  },
  "title" : "precision"
}
-->

# precision

The number of bits of numeric precision available for each feature channel.

```
var precision: Int { get }
```

## Discussion

This is precision, not size (float is 24 bits, not 32; half-precision floating-point is 11 bits, not 16; `Snorm` pixel formats have one less bit of precision for the sign bit, etc.). For formats like <doc://com.apple.documentation/documentation/Metal/MTLPixelFormat/b5g6r5Unorm>, this value is the precision of the most precise channel (which is 6 in this case). When this information is unavailable, typically for compressed formats, this value is 0.

---

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)