Home -> ITextureBuffer -> MipmapLevelCount
Description
The MipmapLevelCount method returns the number of mipmap levels that were created when the texture was allocated.
The value reflects the final allocation rather than only the value requested through SetTextureDimensions. Use it when iterating over valid levels for data upload, readback, or sampler configuration.
Usage
int MipmapLevelCount() const;
Return value
- [int]
- The number of allocated mipmap levels.