Skip to main content

Module decoders

Module decoders 

Source
Expand description

Concrete AssetDecoder implementations: bytes → typed asset.

Decoders are pure CPU work; they have no GPU/IO state. They are registered with the AssetService via register_decoder and dispatched by asset type name during load.

Re-exports§

pub use audio::*;
pub use font::*;
pub use material::*;
pub use mesh::*;
pub use shader::*;
pub use texture::*;

Modules§

audio
Audio decoders for various file formats.
font
Font decoder: TTF/OTF bytes → Font.
material
Material decoder: .kmat RON bytes → Box<dyn Material>.
mesh
Mesh decoders for various formats (GLTF, OBJ) plus a sniffing dispatcher.
shader
Shader decoder: raw .wgsl bytes → CpuShaderSource (UTF-8).
texture
Texture decoder: image bytes → CpuTexture (via the image crate).