Engine → Assets
asset_ref.h
Non-owning reference to an asset: the uuid plus the bound slot. Components store these by value in ECS chunks; copying is a memcpy. get() is one atomic load.
Structs
Classes
| File |
Description |
asset_handle |
Owning, type-erased reference: every live handle counts as one strong reference on the slot, which keeps the payload resident across collect(). Copy and move are atomics; the handle may be copied, moved and destroyed on any thread. |
asset_ref |
Non-owning reference to an asset: the uuid plus the bound slot. Components store these by value in ECS chunks; copying is a memcpy. get() is one atomic load. |
Constants
| Name |
Type |
Value |
Description |
ASSET_REF_TYPE_NAME |
inline constexpr std::string_view |
"conjure.assets.asset_ref" |
The name every asset_ref<T> field reflects under (reflect_kind_override below). The kind is type-erased on purpose: the uuid alone travels, the asset type is known to the binding pass. |
Functions
Public
detail::forget_type_mismatches
CONJURE_API void forget_type_mismatches() noexcept;
Forgets every reported mismatch so the next one logs again; called by ~asset_manager.
detail::report_type_mismatch
Logs the type mismatch of a typed access once per (uuid, requested type) pair until an asset_manager is destroyed (the set is process-wide).