ktx2 0.4.0

Parser for the ktx2 texture container format
Documentation
  • Coverage
  • 47.14%
    66 out of 140 items documented1 out of 77 items with examples
  • Size
  • Source code size: 60.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 9.95 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • BVE-Reborn/ktx2
    18 8 4
  • 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<_>>();

MSRV

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

License: Apache-2.0