block_compression

Crates.ioblock_compression
lib.rsblock_compression
version
sourcesrc
created_at2025-01-20 17:04:23.191345+00
updated_at2025-04-11 16:19:38.690841+00
descriptionTexture block compression using WGPU compute shader
homepage
repositoryhttps://github.com/hasenbanck/block_compression
max_upload_size
id1524060
Cargo.toml error:TOML parse error at line 20, column 1 | 20 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Nils Hasenbanck (hasenbanck)

documentation

https://docs.rs/block_compression

README

block_compression

Crate API

Texture block compression using WGPU compute shader. The shaders are a port of Intel's ISPC Texture Compressor's kernel to WGSL compute shader.

Tested with the following backends:

  • DX12
  • Metal
  • Vulkan

Supported block compressions

Currently supported block compressions are:

  • BC1
  • BC2
  • BC3
  • BC4
  • BC5
  • BC6H
  • BC7

DX12 pipeline creation

The pipeline creation for BC7 and especially BC6H takes a long time under DX12. The DXC compiler seems to take a very long time to compile the shader. For this reason we moved them behind features, which are included in the default features.

License

This project is licensed under the MIT license.

Commit count: 60

cargo fmt