Skip to content

Danielmelody/ispc-texcomp-rs

Repository files navigation

ISPC Texture Compression Rust bindings

Latest version Documentation

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.

About

Yet another rust binding for ispc texture compressor

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors