KTX: add mipmap-related functions