/// Compresses the KTX2 texture's data with ZStandard compression.  
/// `level` is 1-22; lower is faster (hence, worse compression).  
/// Values over 20 may consume significant memory.
Compresses the KTX2 texture's data with ZStandard compression.
`level` is 1-22; lower is faster (hence, worse compression).
Values over 20 may consume significant memory.
Compresses the KTX2 texture ' s data with ZStandard compression . ` level ` is 1 - 22 ; lower is faster ( hence worse compression ) . Values over 20 may consume significant memory .
pub fn deflate_zstd(&mut self, level: u32) -> Result<(), KtxError> {
        // SAFETY: Safe if `self.texture.handle` is sane + actually a KTX2
        let errcode = unsafe { sys::ktxTexture2_DeflateZstd(self.handle(), level as u32) };
        ktx_result(errcode, ())
    }
pub fn deflate_zstd ( & mut self , level : u32 ) -> Result < ( ) , KtxError > { // SAFETY: Safe if `self.texture.handle` is sane + actually a KTX2 let errcode = unsafe { sys :: ktxTexture2_DeflateZstd ( self . handle ( ) , level as u32 ) } ; ktx_result ( errcode , ( ) ) }
Compresses the KTX2 texture's data with ZStandard compression.
Compresses the KTX2 texture ' s data with ZStandard compression .
&mut self
level
u32