2 unstable releases

0.3.0 Feb 3, 2022
0.2.0 Oct 3, 2021

#1825 in Parser implementations

Download history 12002/week @ 2024-10-30 11656/week @ 2024-11-06 10919/week @ 2024-11-13 11526/week @ 2024-11-20 15469/week @ 2024-11-27 14862/week @ 2024-12-04 13810/week @ 2024-12-11 12387/week @ 2024-12-18 9612/week @ 2024-12-25 14169/week @ 2025-01-01 16362/week @ 2025-01-08 16798/week @ 2025-01-15 15750/week @ 2025-01-22 14291/week @ 2025-01-29 18416/week @ 2025-02-05 13579/week @ 2025-02-12

64,480 downloads per month
Used in 119 crates (6 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

~115KB