2 unstable releases

0.3.0 Feb 3, 2022
0.2.0 Oct 3, 2021

#1593 in Parser implementations

Download history 12471/week @ 2024-03-14 12959/week @ 2024-03-21 14918/week @ 2024-03-28 14091/week @ 2024-04-04 14304/week @ 2024-04-11 15278/week @ 2024-04-18 12482/week @ 2024-04-25 13328/week @ 2024-05-02 11598/week @ 2024-05-09 11693/week @ 2024-05-16 12741/week @ 2024-05-23 13806/week @ 2024-05-30 12935/week @ 2024-06-06 13205/week @ 2024-06-13 10046/week @ 2024-06-20 9546/week @ 2024-06-27

47,633 downloads per month
Used in 100 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

~105KB