<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLTexture/channelEncoding",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLTexture(py)channelEncoding"
  },
  "title" : "channelEncoding"
}
-->

# channelEncoding

The data format for each channel value per texel.

```
var channelEncoding: MDLTextureChannelEncoding { get }
```

## Discussion

For example, each channel value for a texel may be an 8-bit integer or a 32-bit floating point value. For possible channel encodings, see [`MDLTextureChannelEncoding`](/documentation/ModelIO/MDLTextureChannelEncoding).

---

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)