The most mip levels a texture of width × height can have: down to 1 × 1 where the GPU interface allows, as in WebGL.
width
height
int maxMipLevelCount(int width, int height);