summaryrefslogtreecommitdiffstats
path: root/source/slang/profile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/profile.cpp')
-rw-r--r--source/slang/profile.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/slang/profile.cpp b/source/slang/profile.cpp
index 6090ddc2e..5f506741f 100644
--- a/source/slang/profile.cpp
+++ b/source/slang/profile.cpp
@@ -14,4 +14,21 @@ ProfileFamily getProfileFamily(ProfileVersion version)
}
}
+const char* getStageName(Stage stage)
+{
+ switch(stage)
+ {
+#define PROFILE_STAGE(ID, NAME, ENUM) \
+ case Stage::ID: return #NAME;
+
+#include "profile-defs.h"
+
+ default:
+ return nullptr;
+ }
+
+}
+
+
+
}