pub fn transcode_basis(
        &mut self,
        format: TranscodeFormat,
        flags: TranscodeFlags,
    ) -> Result<(), KtxError> {
        // SAFETY: Safe if `self.texture.handle` is sane + actually a KTX2
        let errcode =
            unsafe { sys::ktxTexture2_TranscodeBasis(self.handle(), format as u32, flags.bits()) };
        ktx_result(errcode, ())
    }
/// Transcodes this KTX2 to the given format by using ETC1S (from Basis Universal) or UASTC.
///
/// - BasisLZ supercompressed textures are turned back to ETC1S, then transcoded.
/// - UASTC-compressed images are inflated (possibly, even deflating any ZStandard supercompression), then transcoded.
/// - **All internal data of the texture may change, including the
/// [DFD](https://www.khronos.org/registry/DataFormat/specs/1.3/dataformat.1.3.inline.html#_anchor_id_dataformatdescriptor_xreflabel_dataformatdescriptor_khronos_data_format_descriptor)**!
Transcodes this KTX2 to the given format by using ETC1S (from Basis Universal) or UASTC.
BasisLZ supercompressed textures are turned back to ETC1S, then transcoded.
UASTC-compressed images are inflated (possibly, even deflating any ZStandard supercompression), then transcoded.
All internal data of the texture may change, including the
[DFD]**!
Transcodes this KTX2 to the given format by using ETC1S ( from Basis Universal ) or UASTC . BasisLZ supercompressed textures are turned back to ETC1S then transcoded . UASTC - compressed images are inflated ( possibly even deflating any ZStandard supercompression ) then transcoded . All internal data of the texture may change including the [ DFD ] ** !
pub fn transcode_basis(
        &mut self,
        format: TranscodeFormat,
        flags: TranscodeFlags,
    ) -> Result<(), KtxError> {
        // SAFETY: Safe if `self.texture.handle` is sane + actually a KTX2
        let errcode =
            unsafe { sys::ktxTexture2_TranscodeBasis(self.handle(), format as u32, flags.bits()) };
        ktx_result(errcode, ())
    }
pub fn transcode_basis ( & mut self , format : TranscodeFormat , flags : TranscodeFlags , ) -> Result < ( ) , KtxError > { // SAFETY: Safe if `self.texture.handle` is sane + actually a KTX2 let errcode = unsafe { sys :: ktxTexture2_TranscodeBasis ( self . handle ( ) , format as u32 , flags . bits ( ) ) } ; ktx_result ( errcode , ( ) ) }
Transcodes this KTX2 to the given format by using ETC1S (from Basis Universal) or UASTC.
Transcodes this KTX2 to the given format by using ETC1S ( from Basis Universal ) or UASTC .
&mut self
format
TranscodeFormat
flags
TranscodeFlags
&mut self
format
TranscodeFormat
flags
TranscodeFlags