CoriEngine
Loading...
Searching...
No Matches
Cori::Internal::CanBeLoaded Concept Reference

Checks if AssetType of Descriptor can be loaded by the AssetManager. More...

#include <AssetManager.hpp>

Concept definition

template<typename Descriptor>
concept Cori::Internal::CanBeLoaded = IsDescriptor<Descriptor> && requires(const Descriptor& d) {
{ Descriptor::AssetType::Create(d) } -> std::same_as<std::shared_ptr<typename Descriptor::AssetType>>;
}
Checks if AssetType of Descriptor can be loaded by the AssetManager.
Checks T can be considered a descriptor.

Detailed Description

Checks if AssetType of Descriptor can be loaded by the AssetManager.

Definition at line 24 of file AssetManager.hpp.