vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
asset_ref.h
1#pragma once
2
3#include <string>
4
5namespace Vkm::Engine {
6
22template<typename Asset>
23struct AssetRef {
24 using asset_t = Asset;
25
26 std::string name;
27};
28
34template<typename T>
35inline constexpr bool IS_ASSET_REF = false;
36
37template<typename Asset>
38inline constexpr bool IS_ASSET_REF<AssetRef<Asset>> = true;
39
40} // namespace Vkm::Engine
An authored reference to an asset, held as the name it is filed under.
Definition asset_ref.h:23
std::string name
Asset name; empty for none.
Definition asset_ref.h:26