    debug(`\

                            min: ${minFilter}, mag: ${magFilter}`);
                        gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER,
                                         gl[magFilter]);

                        for (const dstMip of range(0,MIPS+1)) {
                            debug(`
                                mip: ${dstMip}`);
                            gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0,
                                                    g