---
title: channelEncoding
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdltexture/channelencoding
---

# channelEncoding

The data format for each channel value per texel.

## Declaration

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

## Discussion

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.

## See Also

### Examining Texture Attributes

- [dimensions](modelio/mdltexture/dimensions.md)
- [rowStride](modelio/mdltexture/rowstride.md)
- [channelCount](modelio/mdltexture/channelcount.md)
- [isCube](modelio/mdltexture/iscube.md)
- [mipLevelCount](modelio/mdltexture/miplevelcount.md)
