maxMipLevels method

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

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

@override
int maxMipLevels(int width, int height) =>
    GpuTextureDesc.fullMipCount(width, height);