ktx

Crates.ioktx
lib.rsktx
version0.3.2
sourcesrc
created_at2019-04-10 14:36:15.383262
updated_at2021-07-30 05:40:48.10148
descriptionKTX texture storage format parsing
homepage
repositoryhttps://github.com/alexheretic/ktx
max_upload_size
id127009
size42,241
Alex Butler (alexheretic)

documentation

README

ktx crates.io Documentation

KTX v1 texture storage format parsing.

Parses byte data according to https://www.khronos.org/registry/KTX/specs/1.0/ktxspec_v1.html.

// Include & use static ktx data
use ktx::{Ktx, include_ktx, KtxInfo};

let image: Ktx<_> = include_ktx!("../tests/babg-bc3.ktx");
assert_eq!(image.pixel_width(), 260);
// Read ktx data at runtime
use ktx::KtxInfo;

let decoder = ktx::Decoder::new(buf_reader)?;
assert_eq!(decoder.pixel_width(), 260);

Minimum supported rust compiler

This crate is maintained with latest stable rust.

Commit count: 22

cargo fmt