asset_manager.h
| File Path | engine/include/conjure/assets/asset_manager.h |
| API ↗ | Cooking, caches and packs, Database, importers and hot reload, Assets, Referencing and loading assets |
Owns every slot, payload and the load pipeline. Outlives every handle. An untyped bind (bind_slot, make_handle), load or pin of a uuid that no source can type asks the sources again on each call, until one can.
Structs
| File | Description |
|---|---|
asset_event |
Delivered to subscribers on the main thread at the end of update(), in order. |
asset_manager_desc |
Construction parameters. update() stops finalising once finaliseBudgetSeconds have passed since it began finalising (dispatch and drain are not counted); it checks after each slot, so it finalises at least one ready slot and can overrun the budget by the slot in progress. blockingTimeoutSeconds is how long load_blocking waits for a job that already owns a slot. For both, NaN and negative values count as 0 and values above 1e9 seconds (infinity included) as 1e9. |
asset_manager_stats |
Counters for tooling. |
asset_subscription |
Token returned by subscribe(); 0 is invalid. |
Classes
| File | Description |
|---|---|
asset_load_batch |
The handles of one load_batch() call. |
asset_manager |
Owns every slot, payload and the load pipeline. Outlives every handle. An untyped bind (bind_slot, make_handle), load or pin of a uuid that no source can type asks the sources again on each call, until one can. |
Enumerations
asset_event_kind
What happened to a slot.
blocking_load_warning
Whether asset_manager::load_blocking logs its once-per-frame hitch WARN when it is called inside a frame. WARN_INSIDE_FRAME is the default and the right choice for game code, where a blocking load is a mistake worth seeing. EXPECTED is for a tool whose contract is to finish inside the call (the editor's prefab commands inside editor.batch and in undo and redo replays): the load still blocks the frame, it is only not reported. Outside a frame neither logs anything.