Since changing dds::Image::data from vector to unique_ptr info about the byte size of the actual data is lost, no? Is it always equal to w * h * sum(mipmaps[i].size()) that can easily be computed from dds::Image fields?
I have this question because libktx seems to separate these things. A BC7 compressed texture seems to actually allocate 1 byte per pixel on the CPU using KTX and 16 bytes per pixel using DDS. Am I missing something?
Encountered this problem while trying to upload
(doesn't have DDS equivalent)