ktx2 0.5.0

Parser for the ktx2 texture container format
Documentation
  • Coverage
  • 98.77%
    161 out of 163 items documented1 out of 87 items with examples
  • Size
  • Source code size: 179.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 12.47 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 28s Average build duration of successful builds.
  • all releases: 23s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • BVE-Reborn/ktx2
    21 7 3
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • cwfitzgerald

ktx2

GitHub Actions Workflow Status Crates.io Documentation License

Parser for the ktx2 texture container format.

Features

Example

// Crate instance of reader. This validates the header
let mut reader = ktx2::Reader::new(file).expect("Can't create reader"); // Crate instance of reader.

// Get general texture information.
let header = reader.header();

// Read iterator over slices of each mipmap level.
let levels = reader.levels().collect::<Vec<_>>();

Testing

Running tests requires the ktx CLI from KTX-Software to be installed and available on your PATH.

MSRV

The minimum supported Rust version is 1.56. MSRV bumps are treated as breaking changes.

License: Apache-2.0