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

Texture compression on the web #94

Open
Davidster opened this issue Aug 12, 2023 · 0 comments
Open

Texture compression on the web #94

Davidster opened this issue Aug 12, 2023 · 0 comments

Comments

@Davidster
Copy link
Owner

Currently, texture compression is only supported on native, no web. This is because the basis_universal rust crate doesn't support WASM. I currently have two ideas for solving this:

  1. Store textures directly in BCN format on disk and skip the transcode step from basisu. This would work pretty well since BCN is supported on all desktop platforms. We can fallback on uncompressed textures if the BC webgpu feature is not available for the device I guess.
  2. Try out https://github.com/expenses/basis-universal-rs. See issue Wasm support aclysma/basis-universal-rs#11 for more details.

Option 1) seems pretty good for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant