17 releases

0.1.18 Apr 10, 2022
0.1.17 Apr 9, 2022
0.1.11 Mar 23, 2022

#8 in Rendering engine

Download history 30/week @ 2022-03-03 88/week @ 2022-03-10 141/week @ 2022-03-17 25/week @ 2022-03-24 63/week @ 2022-03-31 148/week @ 2022-04-07 16/week @ 2022-04-14 27/week @ 2022-04-21 121/week @ 2022-04-28 91/week @ 2022-05-05 276/week @ 2022-05-12

515 downloads per month

MIT license

6MB
2.5K SLoC

Rust 2K SLoC // 0.1% comments C++ 450 SLoC // 0.0% comments

ISPC Texture Compression Rust bindings

Yet an another Rust binding for ispc texture compression

Supported texture formats:

  • BC7
  • BC6H
  • BC3
  • BC4
  • ETC1

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.

Dependencies