2 unstable releases

0.3.0 Feb 3, 2022
0.2.0 Oct 3, 2021

#1830 in Parser implementations

Download history 10577/week @ 2024-11-17 12887/week @ 2024-11-24 17351/week @ 2024-12-01 13371/week @ 2024-12-08 13338/week @ 2024-12-15 9530/week @ 2024-12-22 12066/week @ 2024-12-29 16914/week @ 2025-01-05 16685/week @ 2025-01-12 16296/week @ 2025-01-19 14319/week @ 2025-01-26 17199/week @ 2025-02-02 17109/week @ 2025-02-09 15477/week @ 2025-02-16 20145/week @ 2025-02-23 17570/week @ 2025-03-02

72,274 downloads per month
Used in 120 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