/// Compresses a uncompressed KTX2 texture with Basis Universal.  
/// `quality` is 1-255; 0 -> the default quality, 128. **Lower `quality` means better (but slower) compression**.
Compresses a uncompressed KTX2 texture with Basis Universal.
Compresses a uncompressed KTX2 texture with Basis Universal .
pub fn compress_basis(&mut self, quality: u32) -> Result<(), KtxError> {
        // SAFETY: Safe if `self.texture.handle` is sane + actually a KTX2
        let errcode = unsafe { sys::ktxTexture2_CompressBasis(self.handle(), quality as u32) };
        ktx_result(errcode, ())
    }
pub fn compress_basis ( & mut self , quality : u32 ) -> Result < ( ) , KtxError > { // SAFETY: Safe if `self.texture.handle` is sane + actually a KTX2 let errcode = unsafe { sys :: ktxTexture2_CompressBasis ( self . handle ( ) , quality as u32 ) } ; ktx_result ( errcode , ( ) ) }
Compresses a uncompressed KTX2 texture with Basis Universal.
Compresses a uncompressed KTX2 texture with Basis Universal .
&mut self
quality
u32