BinomialLLC/crunch

Issue with converting KTX file to DDS

bartlomiejduda opened this issue · 0 comments

Hi, I have this KTX file:
84a41266.zip

It seems to be valid KTX2 file according to specification http://wiki.xentax.com/index.php/KTX_Image

I've also checked it with "ktxinfo.exe" tool from official Khronos Software https://github.com/KhronosGroup/KTX-Software
and it seems to print some info:

identifier: «KTX 20»\r\n\x1A\n
vkFormat: VK_FORMAT_UNDEFINED
typeSize: 1
pixelWidth: 2048
pixelHeight: 2048
pixelDepth: 0
layerCount: 0
faceCount: 1
levelCount: 12
supercompressionScheme: KTX_SS_ZSTD
dataFormatDescriptor.byteOffset: 0x170
dataFormatDescriptor.byteLength: 44
keyValueData.byteOffset: 0x19c
keyValueData.byteLength: 132
supercompressionGlobalData.byteOffset: 0
supercompressionGlobalData.byteLength: 0

But it can't be converted correctly with crunch.

I'm getting "Error: Unable to read KTX file" error while trying to parse it.

Can you add support for this file format to crunch?