KhronosGroup / KTX-Software

KTX (Khronos Texture) Library and Tools
Other
874 stars 229 forks source link

Support for 3D textures above 4gb #35

Closed georgeouzou closed 5 years ago

georgeouzou commented 6 years ago

Is there any way KTX can support 3d textures with mipmaps with total size exceeding 4gb?

MarkCallow commented 6 years ago

There is nothing limiting the total size of a KTX file, except the file system on which it resides. Each mip level is limited to 4GB though due to the 32-bit "imageSize" field that gives the level's size. Do you need mip levels larger than 4GB? Note that here a level's size includes all array layers and all faces.

georgeouzou commented 6 years ago

Yes the base 3d image (mip level) is above 4gb in size. The rest of the KTX file format fields can support this easily, but the 32-bit "imageSize" field cannot.

MarkCallow commented 6 years ago

Good to know. I'll keep it in mind for the next version of the KTX format.

MarkCallow commented 5 years ago

KTX2 supports mip levels > 4GB. KTX never will.

georgeouzou commented 5 years ago

Ok thank you!