<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLTextureChannelEncoding",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:@E@MDLTextureChannelEncoding"
  },
  "title" : "MDLTextureChannelEncoding"
}
-->

# MDLTextureChannelEncoding

Options for the data size and type of texel channel values, used by the [`channelEncoding`](/documentation/ModelIO/MDLTexture/channelEncoding) property.

```
enum MDLTextureChannelEncoding
```

## Topics

### Constants

[`MDLTextureChannelEncodingUInt8`](/documentation/ModelIO/MDLTextureChannelEncoding/uInt8-swift.enum.case)

Each channel value per texel is an 8-bit unsigned integer.

[`MDLTextureChannelEncodingUInt16`](/documentation/ModelIO/MDLTextureChannelEncoding/uInt16-swift.enum.case)

Each channel value per texel is a 16-bit unsigned integer.

[`MDLTextureChannelEncodingUInt24`](/documentation/ModelIO/MDLTextureChannelEncoding/uInt24-swift.enum.case)

Each channel value per texel is a 24-bit unsigned integer.

[`MDLTextureChannelEncodingUInt32`](/documentation/ModelIO/MDLTextureChannelEncoding/uInt32-swift.enum.case)

Each channel value per texel is a 32-bit unsigned integer.

[`MDLTextureChannelEncodingFloat16`](/documentation/ModelIO/MDLTextureChannelEncoding/float16)

Each channel value per texel is a 16-bit floating-point value.

[`MDLTextureChannelEncodingFloat32`](/documentation/ModelIO/MDLTextureChannelEncoding/float32)

Each channel value per texel is a 32-bit floating-point value.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)