Crate tbc[−][src]
Texture Block Compression
Pure Rust implementation of BCn texture compression algorithm implementations.
Supported formats:
- BC1 (DXT1)
- BC3 (DTX5)
- BC4 (Both R8 and RG8)
References:
https://docs.microsoft.com/en-us/windows/win32/direct3d10/d3d10-graphics-programming-guide-resources-block-compression https://www.researchgate.net/publication/259000525_Real-Time_DXT_Compression https://www.reedbeta.com/blog/understanding-bcn-texture-compression-formats/ https://www.khronos.org/registry/DataFormat/specs/1.3/dataformat.1.3.html
Re-exports
pub use crate::bc1::encode_image_bc1; |
pub use crate::bc1::encode_image_bc1_conv_u8; |
pub use crate::bc3::encode_image_bc3; |
pub use crate::bc3::encode_image_bc3_conv_u8; |
pub use crate::bc4::encode_image_bc4_r8; |
pub use crate::bc4::encode_image_bc4_r8_conv_u8; |
pub use crate::bc4::encode_image_bc4_rg8; |
pub use crate::bc4::encode_image_bc4_rg8_conv_u8; |
Modules
bc1 | BC1 (DXT1) Encoder. |
bc3 | BC3 (DXT5) Encoder. |
bc4 | |
color | |
utils |