19 releases
0.1.20 | Jul 4, 2022 |
---|---|
0.1.19 | Jul 2, 2022 |
0.1.18 | Apr 10, 2022 |
0.1.11 | Mar 23, 2022 |
#4 in Rendering engine
24 downloads per month
5.5MB
2.5K
SLoC
ISPC Texture Compression Rust bindings
Yet an another Rust binding for ispc texture compression
Supported texture formats:
- BC6H (FP16 HDR input)
- BC7
- ETC1
- BC1, BC3 (aka DXT1, DXT5) and BC4, BC5 (aka ATI1N, ATI2N)
Work in progress support format:
- ASTC (LDR, block sizes up to 8x8)
Integration
To use this crate, one could simply add this to it's Cargo.toml
[dependencies]
ispc-texcomp = "0.1"
But this would only work on platforms that comes with our prebuilt textcomp kernels, for platform outside those list, one must has ispc
installed in PATH, and the ispc feature must be toggled.
[dependencies]
ispc-texcomp = {version="0.1", features=["ispc"]}
Thus ispc
would been called on build time, compiling texcomp kernels into rs bindings and platform-specific static libraries.
Acknowledgement: this repo was imported from https://github.com/gwihlidal/intel-tex-rs, which seems to be dead.