KTX-Software icon indicating copy to clipboard operation
KTX-Software copied to clipboard

New equivalent of ktxsc

Open vlucendo opened this issue 2 years ago • 2 comments

Hi,

I am trying to supercompress a texture with VK_FORMAT_R32G32B32A32_SFLOAT format but can't find the way to do it with the latest alpha release (ktx encode requires a codec parameter and the format is not compatible), therefore I still need to resort to ktxsc.

Is there a way to have the same functionality with the new releases?

Thanks!

vlucendo avatar Jul 31 '23 09:07 vlucendo

Is this an existing texture that you want to supercompress? If so, yes the only way currently is ktxsc. ktx encode is intended for encoding to a Basis Universal format hence the required codec parameter.

We are having discussions about providing ktxsc-like functionality in the new tool set. This issue helps show there is demand. I'm leaning toward making a ktx deflate tool for supercompressing existing textures with zstd or zlib. However it might be a while. The development contract for the new tools has finished. I'd happily accept a PR to add such a tool.

MarkCallow avatar Jul 31 '23 09:07 MarkCallow

Thanks. Yes, this is an existing texture with some custom data I generated using KTX-Parse. Supercompression with zstd reduces it's size significantly, a ktx deflate tool would be a nice addition for these less common usecases.

vlucendo avatar Jul 31 '23 10:07 vlucendo