JakubValtar / basisu_rs

A Rust implementation of Basis Universal transcoder
Apache License 2.0
17 stars 1 forks source link

Consider publishing a UASTC transcoding crate #1

Open fintelia opened 1 year ago

fintelia commented 1 year ago

With the inclusion of UASTC in the KTX2 file format, it would be quite helpful to a have pure-Rust UASTC -> {BC7, ASTC, ETC2, RGBA} transcoding crate to use alongside the ktx2 crate. Basically just taking some methods from this codebase publishing them as a standalone crate:

bc7::convert_block_from_uastc_result()
astc::convert_block_from_uastc_result()
etc::convert_block_from_uastc_result()
uastc::decode_block_to_rgba_result()

I thought about forking this repo, but figured I'd check with you first to see if this is something you might want to publish/maintain?

JakubValtar commented 1 year ago

Thanks for checking with me and for your feedback. I agree, a crate like that would be useful.

I'm currently busy with a project for a few more weeks, but I'd like to publish a crate based on this code soon after!

duplexsystem commented 1 year ago

Same thing for me! It would be very useful to try and get into bevy as current basis_universal crate doesn't work on wasm where this is most useful.

JakubValtar commented 1 year ago

That's a good use case, I'll make sure it works on wasm!

I'm done with my other project and I'm planning to start on this soon.