---
title: mipLevelCount
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdltexture/miplevelcount
---

# mipLevelCount

The number of mipmap levels contained in the texture image data.

## Declaration

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

## Discussion

Discussion Mipmapping is a technique that uses multiple sizes of a texture image to increase rendering performance. If this property’s value is zero, the texture contains a single image, whose size matches the dimensions property. If this value is 1, the texture contains an additional image at half the original dimensions; if this value is 2, the texture contains images at the original size, at half size, and at quarter size; and so on.

## See Also

### Examining Texture Attributes

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