[][src]Crate ktx

KTX texture storage format parsing.

Parses byte data according to https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec.

Example

use ktx::{include_ktx, Ktx};

let image: Ktx<'static> = include_ktx!("../tests/babg-bc3.ktx");
assert_eq!(image.pixel_width, 260);

Macros

include_ktx

Wrapper for include_bytes! returning Ktx<'static>

Structs

Ktx

KTX texture storage format data.

Textures

Iterator over texture level data.