2 unstable releases
0.3.0 | Feb 3, 2022 |
---|---|
0.2.0 | Oct 3, 2021 |
#1713 in Parser implementations
46,649 downloads per month
Used in 118 crates
(5 directly)
28KB
624 lines
ktx2
Parser for the ktx2 texture container format.
Features
- Async reading
- Parsing
- Validating
- Data format description
- Key/value data
License: Apache-2.0
lib.rs
:
Parser for the ktx2 texture container format.
Features
- Async reading
- Parsing
- Validating
- Data format description
- Key/value data
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
~110KB