Returns total number of levels of volume texture with given depth and mipmap count (this is not depth * mipmaps!).
function GetVolumeLevelCount(Depth: LongInt; MipMaps: LongInt): LongInt;
ImagingUtility (at line 266)