/// Returns the number of components of the KTX2 and the size in bytes of each components.
Returns the number of components of the KTX2 and the size in bytes of each components.
Returns the number of components of the KTX2 and the size in bytes of each components .
pub fn component_info(&self) -> (u32, u32) {
        let mut num_components: u32 = 0;
        let mut component_size: u32 = 0;
        // SAFETY: Safe if `self.texture.handle` is sane + actually a KTX2
        unsafe {
            sys::ktxTexture2_GetComponentInfo(
                self.handle(),
                &mut num_components,
                &mut component_size,
            );
        }
        (num_components, component_size)
    }
pub fn component_info ( & self ) -> ( u32 , u32 ) { let mut num_components : u32 = 0 ; let mut component_size : u32 = 0 ; // SAFETY: Safe if `self.texture.handle` is sane + actually a KTX2 unsafe { sys :: ktxTexture2_GetComponentInfo ( self . handle ( ) , & mut num_components , & mut component_size , ) ; } ( num_components , component_size ) }
Returns the number of components of the KTX2 and the size in bytes of each components.
Returns the number of components of the KTX2 and the size in bytes of each components .
&self