KTX-Software
KTX-Software copied to clipboard
Skipping mipmaps when loading from disk
Hello, is there a way to skip some mips when loading a texture from disk? Consider an example where I want to load a texture that has 3 mipmaps with sizes:
- mip0 - 1024
- mip1 - 512
- mip2 - 256
but I only want to load 2 of them (skip the largest mipmap with size 1024 and don't load it into the memory) so that my final (loaded) texture will only have 2 mips with sizes 512 and 256.
I'm currently using ktxTexture_CreateFromNamedFile
and ktxTexture_VkUploadEx_WithSuballocator
to load textures.
Thanks.