Skip to content

Is dds::Image::data's size equal to sum of mip map sizes? #8

@cone-forest

Description

@cone-forest

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 this model (doesn't have DDS equivalent)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions