Skip to main content

ktx2_get_texture_format

Function ktx2_get_texture_format 

Source
pub fn ktx2_get_texture_format<Data: AsRef<[u8]>>(
    ktx2: &Reader<Data>,
    is_srgb: bool,
) -> Result<TextureFormat, TextureError>
Expand description

Reads the TextureFormat from a ktx2::Reader.

ยงErrors

Returns an error for invalid KTX2 data, or unsupported texture formats.