You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to load DDS files with mipmaps, but when I create textures from them, it fails because of the mipmaps.
I used the bimg loader first, did not work, then I used https://github.com/septag/dds-ktx library.
My implementation is below.
So when I call createTexture2D, the assertion below fails:
storageSize is grater then _mem->size.
I tried to debug it, and I found out that that calcTextureSize will yield a different size for around the 6th mipmap.
bimg::calcTextureSize: 37888 + 9728 + 2560 + 640 + 192 + 64
my calculation: 37888 + 9728 + 2560 + 640 + 192 + 32
Because of this, mipmaps are misaligned in memory causing strange looking textures in the game.
I try to load DDS files with mipmaps, but when I create textures from them, it fails because of the mipmaps.
I used the bimg loader first, did not work, then I used https://github.com/septag/dds-ktx library.
My implementation is below.
So when I call createTexture2D, the assertion below fails:
storageSize is grater then _mem->size.
I tried to debug it, and I found out that that calcTextureSize will yield a different size for around the 6th mipmap.
bimg::calcTextureSize: 37888 + 9728 + 2560 + 640 + 192 + 64
my calculation: 37888 + 9728 + 2560 + 640 + 192 + 32
Because of this, mipmaps are misaligned in memory causing strange looking textures in the game.
Here is my implementation:
The text was updated successfully, but these errors were encountered: