summaryrefslogtreecommitdiffstats
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/check.cpp')
-rw-r--r--source/slang/check.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index 070d4c606..dbd9b37b7 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -1488,15 +1488,13 @@ namespace Slang
Stage stage;
} kStages[] =
{
- { "vertex", Stage::Vertex },
- { "hull", Stage::Hull },
- { "domain", Stage::Domain },
- { "geometry", Stage::Geometry },
- { "fragment", Stage::Fragment },
- { "compute", Stage::Compute },
-
- // Allow `pixel` as an alias of `fragment`
- { "pixel", Stage::Fragment },
+ #define PROFILE_STAGE(ID, NAME, ENUM) \
+ { #NAME, Stage::ID },
+
+ #define PROFILE_STAGE_ALIAS(ID, NAME, VAL) \
+ { #NAME, Stage::ID },
+
+ #include "profile-defs.h"
};
for(auto entry : kStages)