Skip to content

Engine → Assets

asset_loader.h

Type-erased loader interface. One instance per registered type, owned by the registry, stateless with respect to individual loads.

Structs

File Description
finalise_context What finalise knows. Every dependency handle is terminal (LOADED or FAILED) when finalise runs; a FAILED dependency reads nullptr (use the manager's fallback).
load_context What load_cpu knows about the asset being loaded.

Classes

File Description
asset_loader Type-erased loader interface. One instance per registered type, owned by the registry, stateless with respect to individual loads.
typed_asset_loader Typed convenience base: implements type(), load_cpu(), finalise() and create_fallback() as final overrides that erase through make_payload(); implementers write the typed functions.