Bevy BasisU texture saver and asset processor
Basis universal texture encoder and bevy asset processor to transform images to basisu ktx2 textures.
This is based on basisu_c_sys and bevy_basisu_loader.
wasm32-unknown-unknown should be supported but is less tested.
Usage
- Add the Cargo dependency:
- Add
BasisuSaverPluginwhich registers basisu asset processor:
use BasisuSaverPlugin;
- High level basisu encoder API which is a wrapper of
basisu_c_sys:
let mut encoder = new;
for in face_paths.iter.enumerate
let compressed = encoder
.compress
.unwrap;
See also examples/test_processor
Bevy version compatibility
bevy |
bevy_basisu_loader |
basis_universal |
|---|---|---|
| 0.18 | 0.2, 0.3 | v2_1_0 |
License
Except where noted (below and/or in individual files), all code in this repository is dual-licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.