pub fn from_res_encoding_config(
        res: &Resources,
        name: &str,
        config: TextureOptions,
    ) -> Result<Self, TextureError> {
        let data = res
            .load_bytes(name)
            .map_err(|e| TextureError::ResourceLoad {
                name: name.to_string(),
                source: e,
            })?;

        Self::from_encoding_config(&data, config)
    }
/// Loads a named resource file using the provided settings
/// See [`Self::from_encoding_config`] for more information
Loads a named resource file using the provided settings
See [`Self::from_encoding_config`] for more information
Loads a named resource file using the provided settings See [ ` Self :: from_encoding_config ` ] for more information
pub fn from_res_encoding_config(
        res: &Resources,
        name: &str,
        config: TextureOptions,
    ) -> Result<Self, TextureError> {
        let data = res
            .load_bytes(name)
            .map_err(|e| TextureError::ResourceLoad {
                name: name.to_string(),
                source: e,
            })?;
        Self::from_encoding_config(&data, config)
    }
pub fn from_res_encoding_config ( res : & Resources , name : & str , config : TextureOptions , ) -> Result < Self , TextureError > { let data = res . load_bytes ( name ) . map_err ( | e | TextureError :: ResourceLoad { name : name . to_string ( ) , source : e , } ) ? ; Self :: from_encoding_config ( & data , config ) }
Loads a named resource file using the provided settings
See [`Self::from_encoding_config`] for more information
Loads a named resource file using the provided settings See [ ` Self :: from_encoding_config ` ] for more information
res
&Resources
name
&str
config
TextureOptions
res
&Resources
name
&str
config
TextureOptions