ktx2

Crates.ioktx2
lib.rsktx2
version0.4.0
created_at2021-10-03 06:04:30.320609+00
updated_at2025-03-24 16:53:04.663865+00
descriptionParser for the ktx2 texture container format
homepage
repositoryhttps://github.com/BVE-Reborn/ktx2
max_upload_size
id459642
size61,311
Connor Fitzgerald (cwfitzgerald)

documentation

README

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

Commit count: 99

cargo fmt