level_prime_base}, ${level_prime_max}] (inclusive)
                    level_base/max: [${level_base}, ${level_max}] (inclusive)
                    q: ${q}`);
                gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_BASE_LEVEL,
                                 level_prime_base);
                gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAX_LEVEL,
                                 level_prime_max);

                const mipComplete = (q <= MIPS-1);

                for (const [minFilter,useMips] of MIN_F