3 releases (breaking)

0.4.0 Mar 24, 2025
0.3.0 Feb 3, 2022
0.2.0 Oct 3, 2021

#162 in Parser implementations

Download history 18652/week @ 2025-03-22 16237/week @ 2025-03-29 16957/week @ 2025-04-05 14845/week @ 2025-04-12 15147/week @ 2025-04-19 17079/week @ 2025-04-26 18078/week @ 2025-05-03 13957/week @ 2025-05-10 17324/week @ 2025-05-17 21572/week @ 2025-05-24 21658/week @ 2025-05-31 21231/week @ 2025-06-07 21579/week @ 2025-06-14 20976/week @ 2025-06-21 21520/week @ 2025-06-28 21911/week @ 2025-07-05

89,289 downloads per month
Used in 131 crates (7 directly)

Apache-2.0

41KB
878 lines

ktx2

GitHub Actions Workflow Status Crates.io Documentation License

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

MSRV

The minimum supported Rust version is 1.56. MSRV bumps are treated as breaking changes.

License: Apache-2.0

Dependencies

~94KB