Skip to content

Commit d40ffae

Browse files
committed
Update docs
1 parent d87f245 commit d40ffae

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The `crates/basisu_sys/` contains a high level wrapper of the basis universal C+
6464

6565
For native platforms, it just builds and statically links the C++ library.
6666

67-
For web, it contains a tool to build basisu vendor using Emscripten and produce js and wasm files. The basisu wrapper is designed so that it does not need to share memory with main Wasm module, instead its memory is copied from/into main Wasm module through javascript. When building this plugin targeting `wasm32-unknown-unknown`, the basisu vendor js and wasm files will be embedded into binary and is called through `wasm-bindgen` and `js-sys`.
67+
For web, it contains a tool to build basisu vendor using Emscripten and produce js and wasm files. The basisu wrapper is designed so that it does not need to share memory with main Wasm module, instead its memory is copied from/into main Wasm module through javascript. When building this plugin targeting `wasm32-unknown-unknown`, the basisu vendor js and wasm files are embedded into binary and is called through `wasm-bindgen` and `js-sys`.
6868

6969
## Bevy version compatibility
7070

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ pub use loader::*;
77

88
/// Provides a loader for Basis Universal KTX2 textures.
99
///
10-
/// The file extension must be `.basisu.ktx2` to use this loader. Supports KTX2 UASTC/ETC1S format. Zstd supercompression is supported even if bevy's zstd feature is disabled. No support for `.basis` files.
10+
/// The file extension must be `.basisu.ktx2` to use this loader. All basis universal compressed formats (ETC1S, UASTC, XUASTC) are supported. Zstd supercompression is always supported. No support for `.basis` files.
1111
///
1212
/// Transcode Target Selection:
1313
///
14-
/// | BasisU format | target selection |
14+
/// | BasisU format | target selection |
1515
/// | ------------------------------ | -------------------------------------------------------------- |
1616
/// | ETC1S | Bc7Rgba/Bc5Rg/Bc4R > Etc2Rgba8/Etc2Rgb8/EacRg11/EacR11 > Rgba8 |
1717
/// | UASTC_LDR, ASTC_LDR, XUASTC_LDR| Astc > Bc7Rgba > Etc2Rgba8/Etc2Rgb8/EacRg11/EacR11 > Rgba8 |

src/loader.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ pub struct BasisuLoaderSettings {
6868
/// The channel type hint for transcode target selection.
6969
///
7070
/// If [`ChannelType::Auto`], it will be determined by the KTX2 data format descriptor channel type.
71-
/// Note: This will be ignored when the transcode target format is not ETC2 or BC4/BC5 and usually has no effect for UASTC textures. See [`BasisuLoaderPlugin`](crate::BasisuLoaderPlugin) for more information about the transcode targets.
71+
/// Note: This will be ignored when the transcode target format is not ETC2 or BC4/BC5 so it usually has no effect for UASTC textures. See [`BasisuLoaderPlugin`](crate::BasisuLoaderPlugin) for more information about the transcode targets.
7272
pub channel_type_hint: ChannelType,
73-
/// Forcibly transcode to a specific [`TextureFormat`] if it's not `None`. Otherwise the format will be selected automatically.
73+
/// Forcibly transcode to a specific [`TextureFormat`]. If `None` the target format is selected automatically.
7474
///
7575
/// Only set this if you know what you're doing and use this with caution, it will fail if the transcode target is not supported by Basis Universal or the texture format is not supported by the device.
76-
/// Srgb-ness is ignored and will be determined by `is_srgb`.
76+
/// The srgb-ness of texture format is ignored and will be determined by `is_srgb`.
7777
pub force_transcode_target: Option<TextureFormat>,
7878
}
7979

0 commit comments

Comments
 (0)