pub struct Reader<Data: AsRef<[u8]>> { /* private fields */ }
Expand description
Decodes KTX2 texture data
Implementations§
source§impl<Data: AsRef<[u8]>> Reader<Data>
impl<Data: AsRef<[u8]>> Reader<Data>
sourcepub fn new(input: Data) -> Result<Self, ParseError>
pub fn new(input: Data) -> Result<Self, ParseError>
Decode KTX2 data from input
sourcepub fn levels(&self) -> impl ExactSizeIterator<Item = &[u8]> + '_
pub fn levels(&self) -> impl ExactSizeIterator<Item = &[u8]> + '_
Iterator over the texture’s mip levels
pub fn supercompression_global_data(&self) -> &[u8] ⓘ
pub fn data_format_descriptors( &self ) -> impl Iterator<Item = DataFormatDescriptor<'_>>
Auto Trait Implementations§
impl<Data> RefUnwindSafe for Reader<Data>where
Data: RefUnwindSafe,
impl<Data> Send for Reader<Data>where
Data: Send,
impl<Data> Sync for Reader<Data>where
Data: Sync,
impl<Data> Unpin for Reader<Data>where
Data: Unpin,
impl<Data> UnwindSafe for Reader<Data>where
Data: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more