---
title: channelCount
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdltexture/channelcount
---

# channelCount

The number of channels per texel.

## Declaration

```swift
var channelCount: Int { get }
```

## Discussion

Discussion For example, a grayscale texture has one channel (brightness) per texel, and a color texture may have three (RGB) or four (RGBA) channels per texel.

## See Also

### Examining Texture Attributes

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