Crate ktx2

Source
Expand description

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<_>>();

Structs§

BasicDataFormatDescriptor
ChannelTypeQualifiers
ColorModel
ColorPrimaries
DataFormatDescriptor
DataFormatDescriptorHeader
DataFormatFlags
Format
Known texture formats
Header
Container-level metadata
Reader
Decodes KTX2 texture data
SampleInformation
SupercompressionScheme
Known supercompression schemes
TransferFunction

Enums§

ParseError
Error, that happend when data doesn’t satisfy expected parameters.