2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 07:07:42 +00:00

hecl/Compilers: Make name strings constexpr

Same behavior (as of C++17), without the need to duplicate the variable
name.
This commit is contained in:
Lioncash
2019-08-23 11:40:12 -04:00
parent e691b95cbf
commit 3b60cee576
2 changed files with 11 additions and 28 deletions

View File

@@ -17,23 +17,6 @@ extern pD3DCompile D3DCompilePROC;
namespace hecl {
logvisor::Module Log("hecl::Compilers");
namespace PlatformType {
const char* OpenGL::Name = "OpenGL";
const char* Vulkan::Name = "Vulkan";
const char* D3D11::Name = "D3D11";
const char* Metal::Name = "Metal";
const char* NX::Name = "NX";
} // namespace PlatformType
namespace PipelineStage {
const char* Null::Name = "Null";
const char* Vertex::Name = "Vertex";
const char* Fragment::Name = "Fragment";
const char* Geometry::Name = "Geometry";
const char* Control::Name = "Control";
const char* Evaluation::Name = "Evaluation";
} // namespace PipelineStage
template <typename P>
struct ShaderCompiler {};