2 unstable releases

0.3.0 Feb 3, 2022
0.2.0 Oct 3, 2021

#1713 in Parser implementations

Download history 16671/week @ 2024-07-27 12101/week @ 2024-08-03 16969/week @ 2024-08-10 13994/week @ 2024-08-17 17321/week @ 2024-08-24 15808/week @ 2024-08-31 13342/week @ 2024-09-07 12446/week @ 2024-09-14 16851/week @ 2024-09-21 16528/week @ 2024-09-28 16158/week @ 2024-10-05 13221/week @ 2024-10-12 11967/week @ 2024-10-19 11288/week @ 2024-10-26 11917/week @ 2024-11-02 9894/week @ 2024-11-09

46,649 downloads per month
Used in 118 crates (5 directly)

Apache-2.0

28KB
624 lines

ktx2

GitHub Workflow Status Crates.io Documentation License

Parser for the ktx2 texture container format.

Features

License: Apache-2.0


lib.rs:

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<_>>();

Dependencies

~110KB