2 unstable releases

0.3.0 Feb 3, 2022
0.2.0 Oct 3, 2021

#1901 in Parser implementations

Download history 8445/week @ 2023-11-18 8837/week @ 2023-11-25 11032/week @ 2023-12-02 10221/week @ 2023-12-09 8767/week @ 2023-12-16 7193/week @ 2023-12-23 9581/week @ 2023-12-30 11137/week @ 2024-01-06 11951/week @ 2024-01-13 12657/week @ 2024-01-20 12369/week @ 2024-01-27 11667/week @ 2024-02-03 11070/week @ 2024-02-10 15251/week @ 2024-02-17 16122/week @ 2024-02-24 15023/week @ 2024-03-02

59,354 downloads per month
Used in 80 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

~87KB