3#include <nlohmann/json_fwd.hpp>
5#include "resource/texture_format.h"
17 inline constexpr const char*
COOKED =
"cooked";
19 inline constexpr const char*
DECIMATE =
"decimate";
20 inline constexpr const char*
FILE =
"file";
21 inline constexpr const char*
GENERATOR =
"generator";
23 inline constexpr const char*
INLINE =
"inline";
24 inline constexpr const char*
MODEL =
"model";
27 inline constexpr const char*
SOLID =
"solid";
38 inline constexpr const char*
USAGE =
"usage";
40 inline constexpr const char*
PATH =
"path";
41 inline constexpr const char*
MESH =
"mesh";
43 inline constexpr const char*
CLIP =
"clip";
45 inline constexpr const char*
RIG =
"rig";
47 inline constexpr const char*
MARKERS =
"markers";
48 inline constexpr const char*
REF =
"ref";
50 inline constexpr const char*
BASE =
"base";
52 inline constexpr const char*
RATIO =
"ratio";
66TextureUsage textureUsageFromRecipe(
const nlohmann::json& source);
Keys a source descriptor is written with in one file and read by in another.
Definition asset_source_kind.h:36
constexpr const char * GENERATE_MIPMAPS
Whether a texture builds a mip chain.
Definition asset_source_kind.h:54
constexpr const char * MESH
Definition asset_source_kind.h:41
constexpr const char * CLIP
Which of a model file's animations.
Definition asset_source_kind.h:43
constexpr const char * PATH
The source file an import reads, project-relative.
Definition asset_source_kind.h:40
constexpr const char * BASE
The mesh a decimated level is derived from, by name.
Definition asset_source_kind.h:50
constexpr const char * REF
Definition asset_source_kind.h:48
constexpr const char * RIG
The rig of another file a clip is bound to, by name.
Definition asset_source_kind.h:45
constexpr const char * RATIO
A decimated level's share of its base's triangles.
Definition asset_source_kind.h:52
constexpr const char * MARKERS
A clip's authored {name, time} markers.
Definition asset_source_kind.h:47
constexpr const char * USAGE
What a texture's texels mean, a TextureUsage name.
Definition asset_source_kind.h:38
The kind field of an asset's source descriptor.
Definition asset_source_kind.h:15
constexpr const char * INLINE
A material whose values live in the descriptor itself.
Definition asset_source_kind.h:23
constexpr const char * MODEL
Definition asset_source_kind.h:24
constexpr const char * FILE
One file on disk, decoded as-is.
Definition asset_source_kind.h:20
constexpr const char * GENERATOR
Definition asset_source_kind.h:21
constexpr const char * DECIMATE
A mesh derived from another by simplification (an LOD).
Definition asset_source_kind.h:19
constexpr const char * COOKED
What an asset read from its cooked file carries instead of its recipe.
Definition asset_source_kind.h:17
constexpr const char * MODEL_IMAGE
A texture embedded in, or referenced beside, a model file.
Definition asset_source_kind.h:26
constexpr const char * SOLID
A single-colour texture.
Definition asset_source_kind.h:27