3 releases (breaking)

0.3.0 Apr 12, 2021
0.2.0 Apr 10, 2021
0.1.0 Apr 9, 2021

#399 in Compression

Download history 123/week @ 2023-12-01 144/week @ 2023-12-08 148/week @ 2023-12-15 167/week @ 2023-12-22 288/week @ 2023-12-29 184/week @ 2024-01-05 173/week @ 2024-01-12 159/week @ 2024-01-19 157/week @ 2024-01-26 199/week @ 2024-02-02 168/week @ 2024-02-09 189/week @ 2024-02-16 140/week @ 2024-02-23 158/week @ 2024-03-01 177/week @ 2024-03-08 165/week @ 2024-03-15

671 downloads per month
Used in 6 crates (2 directly)

MIT license

23KB
631 lines

About

Texture Block Compression (BCn) written in Rust. Block compression is used to compress textures for GPU, there are lots of variations BC1 (DXT1), BC3 (DXT5), and so on. Compressed textures has much lower requirements for memory bandwidth and especially useful for slow memory used by built-in GPUs. Almost every GPUs starting from 1998 has hardware decompressor for compressed textures, so there is no performance penalty of compression.

Supported formats

  • BC1 (DXT1)
  • BC3 (DXT5)
  • BC4 (Both R8 and RG8)

References

No runtime deps