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.