|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Result returned when an asynchronous asset load reaches a terminal state. More...
#include <Asset.h>
Public Attributes | |
| Ref< Key, AssetClass > | ref |
| Stable reference to the record that produced this result. | |
| AssetClass * | asset = nullptr |
| Loaded asset payload, or nullptr when loading failed or the record expired. | |
| bool | success = false |
| True when the payload finished loading successfully. | |
| std::string | error |
| Failure message for unsuccessful loads. | |
| uint64_t | generation = 0 |
| Record generation that completed. | |
Result returned when an asynchronous asset load reaches a terminal state.
The result describes one generation of a record. A new generation is created when the manager starts a new load, replaces the payload, or unloads the payload.
| Key | Asset lookup key type used by the owning AssetManager. |
| AssetClass | Asset payload type stored by the owning AssetManager. |
| AssetClass* Asset::LoadResult< Key, AssetClass >::asset = nullptr |
Loaded asset payload, or nullptr when loading failed or the record expired.
Definition at line 75 of file Asset.h.
Referenced by Asset::AssetManager< Key, AssetClass >::completeRecord().
| std::string Asset::LoadResult< Key, AssetClass >::error |
Failure message for unsuccessful loads.
Definition at line 85 of file Asset.h.
Referenced by Asset::AssetManager< Key, AssetClass >::completeRecord(), and Asset::Ref< Asset::MeshPath, Animation >::expiredFuture().
| uint64_t Asset::LoadResult< Key, AssetClass >::generation = 0 |
Record generation that completed.
Definition at line 90 of file Asset.h.
Referenced by Asset::AssetManager< Key, AssetClass >::completeRecord().
| Ref<Key, AssetClass> Asset::LoadResult< Key, AssetClass >::ref |
Stable reference to the record that produced this result.
Definition at line 70 of file Asset.h.
Referenced by Asset::AssetManager< Key, AssetClass >::completeRecord().
| bool Asset::LoadResult< Key, AssetClass >::success = false |
True when the payload finished loading successfully.
Definition at line 80 of file Asset.h.
Referenced by Asset::AssetManager< Key, AssetClass >::completeRecord().