ispc-texcomp

Crates.ioispc-texcomp
lib.rsispc-texcomp
version0.1.20
sourcesrc
created_at2022-03-08 08:22:26.259675
updated_at2022-07-04 16:17:40.89399
descriptionRust bindings for Intel's ISPC texture compressor.
homepagehttps://github.com/Danielmelody/ispc-texcomp-rs
repositoryhttps://github.com/Danielmelody/ispc-texcomp-rs
max_upload_size
id546117
size14,192,784
Daniel (Danielmelody)

documentation

https://docs.rs/ispc-texcomp

README

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.

Commit count: 54

cargo fmt