Crates.io | intel_tex_2 |
lib.rs | intel_tex_2 |
version | 0.4.0 |
source | src |
created_at | 2022-03-15 15:15:27.176282 |
updated_at | 2024-05-03 09:14:19.260454 |
description | Rust bindings for Intel's ISPC texture compressor. |
homepage | https://github.com/Traverse-Research/intel-tex-rs-2 |
repository | https://github.com/Traverse-Research/intel-tex-rs-2 |
max_upload_size | |
id | 550530 |
size | 31,302,821 |
This is a forked crate from from Graham Wihlidal's rust bindings repo for the ISPC texture compressor. The fork includes updates to the latest Intel ISPC texture compression, as well as some patches that were required to make it useful in production.
State of the art texture compression for BC6H, BC7, ETC1, ASTC 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).
Additionally, libclang exists in the LLVM installer for Windows, also included. https://github.com/gwihlidal/intel-tex-rs/tree/master/dependencies
Add this to your Cargo.toml
:
[dependencies]
intel_tex_2 = "0.4.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_2 crate is organized under the terms of the Contributor Covenant, the maintainers of intel_tex_2, Traverse Research BV, promise to intervene to uphold that code of conduct.