// Temporary - off by default because encoding textures is very slow
off by default because encoding textures is very slow
off by default because encoding textures is very slow
pub fn default_format_and_mip_generation(
    ) -> (ImageAssetDataFormatConfig, ImageAssetMipGeneration) {
        let compress_textures = false;
        if compress_textures {
            #[cfg(feature = "basis-universal")]
            {
                let basis_settings = ImageAssetBasisCompressionSettings::default_uastc();
                let format_config = ImageAssetDataFormatConfig::BasisCompressed(basis_settings);
                let mipmap_generation = ImageAssetMipGeneration::Precomupted;
                (format_config, mipmap_generation)
            }
            #[cfg(not(feature = "basis-universal"))]
            {
                unimplemented!("Not built with basis-universal feature")
            }
        } else {
            let format_config = ImageAssetDataFormatConfig::Uncompressed;
            let mipmap_generation = ImageAssetMipGeneration::Runtime;
            (format_config, mipmap_generation)
        }
    }
pub fn default_format_and_mip_generation ( ) -> ( ImageAssetDataFormatConfig , ImageAssetMipGeneration ) { let compress_textures = false ; if compress_textures { # [ cfg ( feature " " ) ] { let basis_settings = ImageAssetBasisCompressionSettings :: default_uastc ( ) ; let format_config = ImageAssetDataFormatConfig :: BasisCompressed ( basis_settings ) ; let mipmap_generation = ImageAssetMipGeneration :: Precomupted ; ( format_config , mipmap_generation ) } # [ cfg ( not ( feature " " ) ) ] { unimplemented ! ( " " ) } } else { let format_config = ImageAssetDataFormatConfig :: Uncompressed ; let mipmap_generation = ImageAssetMipGeneration :: Runtime ; ( format_config , mipmap_generation ) } }
Temporary - off by default because encoding textures is very slow
Temporary - off by default because encoding textures is very slow