pub fn ktx2_dfd_header_to_texture_format(
basic_data_format_descriptor: &Basic,
is_srgb: bool,
) -> Result<TextureFormat, TextureError>Expand description
Reads the TextureFormat from a KTX2 data format descriptor header.
ยงErrors
Returns an error for invalid or unsupported texture formats.