Crates.io | ispc-tex |
lib.rs | ispc-tex |
version | 0.1.0 |
source | src |
created_at | 2022-02-26 18:20:00.190361 |
updated_at | 2022-02-26 18:20:00.190361 |
description | Rust bindings for Intel's ISPC texture compressor. |
homepage | https://github.com/legion-labs/ispc-tex-rs |
repository | https://github.com/legion-labs/ispc-tex-rs |
max_upload_size | |
id | 540071 |
size | 3,905,854 |
========
Rust bindings for Intel's ISPC texture compressor.
State of the art texture compression for BC6H, BC7, and BC1/BC3.
ISPC and libclang
are not required, unless regenerating the ISPC kernels:
cargo build --features=ispc
libclang
installed (for rust-bindgen)
For convenience, ISPC binaries for macOS, Linux, and Windows are in the repository (but not the crate).
Add this to your Cargo.toml
:
[dependencies]
ispc-tex = "0.1.0"
$ cargo run --release --example main
Width is 4096
Height is 4096
ColorType is RGB(8)
Converting RGB -> RGBA
Block count: 1048576
Compressing to BC7...
Done!
Saving lambertian.dds file
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Contributions are always welcome; please look at the issue tracker to see what known improvements are documented.
Contribution to the intel-tex crate is organized under the terms of the Contributor Covenant, the maintainer of intel-tex, @legion-labs, promises to intervene to uphold that code of conduct.