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
For a mipmapped compressed DDS (BC7, but should apply to all compressed DDS formats) of size 1024x1024, compressonatorcli generates dwLinearSize 4096.
That's... not entirely correct. (hint: sqrt(4096) != 1024) :-)
It should be 1MB (in this case, with a 4:1 compression).
While I have not looked at the src emitting this incorrect value, the binary representations of these two values could suggest an erroneous big-/little-endian conversion.
4K = 00 10 00 00
1M = 00 00 10 00
The text was updated successfully, but these errors were encountered:
DDS file output produces invalid DDS_HEADER.dwPitchOrLinearSize (a.k.a. DDSURFACEDESC2.dwLinearSize).
For a mipmapped compressed DDS (BC7, but should apply to all compressed DDS formats) of size 1024x1024, compressonatorcli generates dwLinearSize 4096.
That's... not entirely correct. (hint:
sqrt(4096) != 1024
) :-)It should be 1MB (in this case, with a 4:1 compression).
While I have not looked at the src emitting this incorrect value, the binary representations of these two values could suggest an erroneous big-/little-endian conversion.
4K = 00 10 00 00
1M = 00 00 10 00
The text was updated successfully, but these errors were encountered: