maxMipLevels abstract method

int maxMipLevels(
  1. int width,
  2. int height
)

The most mip levels a width × height texture may have here. Flutter GPU allows floor(log2(min(width, height))), one fewer than a full chain (flutter/flutter#186176).

Implementation

int maxMipLevels(int width, int height);