11 , _typeName( typeName )
12 , _resourceName(resourceName)
48 :
Resource( descriptor.resourceName(), typeName)
49 , _assetLocation( descriptor.assetLocation() )
50 , _assetName( descriptor.assetName() )
51 , _descriptorHash( descriptor.getHash() )
77 , _resourceName( resourceName.data(), resourceName.size() )
#define WAIT_FOR_CONDITION(...)
virtual bool load(PlatformContext &context)
Loading and unloading interface.
CachedResource(const ResourceDescriptorBase &descriptor, std::string_view typeName)
void setState(ResourceState currentState) final
Utility class that adds basic GUID management to objects.
std::atomic< ResourceState > _resourceState
ResourceState getState() const noexcept
virtual void setState(ResourceState currentState)
Resource(std::string_view resourceName, std::string_view typeName)
void Hash_combine(size_t &seed, const T &v, const Rest &... rest) noexcept
a la Boost
Handle console commands that start with a forward slash.
bool SafeToDelete(Resource *res)
@ RES_LOADED
The resource is available for usage.
@ RES_CREATED
The pointer has been created and instantiated, but no data has been loaded.
void WaitForReady(Resource *res)
constexpr U64 _ID(const char *const str, const U64 value=val_64_const) noexcept
SceneGraphNode * _flag[2]
size_t getHash() const override
ResourceDescriptorBase(const std::string_view resourceName)