Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New equivalent of ktxsc #747

Open
vlucendo opened this issue Jul 31, 2023 · 2 comments
Open

New equivalent of ktxsc #747

vlucendo opened this issue Jul 31, 2023 · 2 comments

Comments

@vlucendo
Copy link

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!

@MarkCallow
Copy link
Collaborator

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.

@vlucendo
Copy link
Author

vlucendo commented Jul 31, 2023

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.

MarkCallow added a commit that referenced this issue Apr 18, 2024
For deflating an existing ktx 2.0 file, i.e applying zlib or zstd.

Fixes part of #747. A complete fix requires either `ktx encode` support
ASTC or a new ktx `encode-astc` command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants