-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommon.hpp
More file actions
73 lines (60 loc) · 2.29 KB
/
Common.hpp
File metadata and controls
73 lines (60 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
///
/// @file Common.hpp
/// @brief This file contains the common definitions.
/// @namespace cae
///
#pragma once
#include "CAE/VersionEditor.hpp"
#include "Engine/Common.hpp"
#include <string_view>
namespace cae
{
namespace MESSAGE
{
static constexpr std::string_view HELP_MSG = "Usage: " PROJECT_NAME APP_EXTENSION " [options]\n\n"
"Options:\n"
" -h, --help Show this help message\n"
" -v, --version Show version information\n"
" -c, --config <path> Specify JSON configuration file";
static constexpr std::string_view VERSION_MSG = PROJECT_NAME
" v" PROJECT_VERSION " " BUILD_TYPE " (" GIT_TAG ", commit " GIT_COMMIT_HASH ") " __DATE__ " " __TIME__;
} // namespace MESSAGE
namespace PLUGINS::NAME
{
namespace RENDERER
{
inline constexpr auto DIRECTX11 = "DirectX11";
inline constexpr auto DIRECTX12 = "DirectX12";
inline constexpr auto OPENGL = "OpenGL";
inline constexpr auto VULKAN = "Vulkan";
inline constexpr auto WEB_GPU = "WebGPU";
} // namespace RENDERER
namespace SHADER
{
namespace IR
{
inline constexpr auto DXBC = "DXBC";
inline constexpr auto DXIL = "DXIL";
inline constexpr auto SPIRV = "SPIRV";
} // namespace IR
namespace FRONTEND
{
inline constexpr auto GLSL = "GLSL";
inline constexpr auto HLSL = "HLSL";
inline constexpr auto MSL = "MSL";
inline constexpr auto WGL = "WGL";
} // namespace FRONTEND
} // namespace SHADER
namespace WINDOW
{
inline constexpr auto COCOA = "Cocoa";
inline constexpr auto GLFW = "GLFW";
inline constexpr auto WIN32_ = "Win32";
inline constexpr auto X11 = "X11";
} // namespace WINDOW
} // namespace PLUGINS::NAME
namespace USER
{
inline constexpr auto NAME = "User";
} // namespace USER
} // namespace cae