plug in ctx->Driver.GenerateMipmap function