no-std ktx2

Parser for the ktx2 texture container format

2 unstable releases

0.3.0 Feb 3, 2022
0.2.0 Oct 3, 2021
Download history 11318/week @ 2024-06-18 10688/week @ 2024-06-25 12635/week @ 2024-07-02 13844/week @ 2024-07-09 14196/week @ 2024-07-16 15389/week @ 2024-07-23 15236/week @ 2024-07-30 13599/week @ 2024-08-06 15874/week @ 2024-08-13 14655/week @ 2024-08-20 17155/week @ 2024-08-27 17282/week @ 2024-09-03 10753/week @ 2024-09-10 15187/week @ 2024-09-17 16560/week @ 2024-09-24 12795/week @ 2024-10-01

59,680 downloads per month
Used in 112 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