|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
#include <Asset.h>
Public Types | |
| using | RecordType = Record<Key, AssetClass> |
| using | Result = LoadResult<Key, AssetClass> |
Public Member Functions | |
| Ref ()=default | |
| LoadState | getState () const |
| bool | isLoaded () const |
| AssetClass * | get () const |
| uint64_t | getGeneration () const |
| const std::string & | getError () const |
| std::shared_future< Result > | readyFuture () const |
| operator bool () const | |
Private Member Functions | |
| Ref (std::shared_ptr< RecordType > record) | |
Static Private Member Functions | |
| static std::shared_future< Result > | expiredFuture () |
Private Attributes | |
| std::weak_ptr< RecordType > | record_ |
| using Asset::Ref< Key, AssetClass >::RecordType = Record<Key, AssetClass> |
| using Asset::Ref< Key, AssetClass >::Result = LoadResult<Key, AssetClass> |
|
default |
|
inlineexplicitprivate |
|
inlinestaticprivate |
Definition at line 147 of file Asset.h.
Referenced by Asset::Ref< std::filesystem::path, Audio >::readyFuture().
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
Definition at line 101 of file Asset.h.
Referenced by Asset::Ref< std::filesystem::path, Audio >::isLoaded().
|
inlinenodiscard |
|
inlineexplicitnodiscard |
|
inlinenodiscard |
|
private |