pub trait AssetProcessor<A: Asset>:
Send
+ Sync
+ 'static {
// Required methods
fn process(&self, asset: &mut A, path: &AssetPath) -> Result<(), String>;
fn name(&self) -> &str;
}Expand description
Post-processes an asset after it is first loaded.
Examples: generating mip-maps for images, building a BVH for meshes, packing glyphs into a texture atlas for fonts.