| Crates.io | ktx2 |
| lib.rs | ktx2 |
| version | 0.4.0 |
| created_at | 2021-10-03 06:04:30.320609+00 |
| updated_at | 2025-03-24 16:53:04.663865+00 |
| description | Parser for the ktx2 texture container format |
| homepage | |
| repository | https://github.com/BVE-Reborn/ktx2 |
| max_upload_size | |
| id | 459642 |
| size | 61,311 |
Parser for the ktx2 texture container format.
// 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<_>>();
The minimum supported Rust version is 1.56. MSRV bumps are treated as breaking changes.
License: Apache-2.0