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.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/slang/profile.cpp b/source/slang/profile.cpp
new file mode 100644
index 000000000..923dc2841
--- /dev/null
+++ b/source/slang/profile.cpp
@@ -0,0 +1,20 @@
+// profile.cpp
+#include "Profile.h"
+
+
+namespace Slang {
+namespace Compiler {
+
+
+ProfileFamily getProfileFamily(ProfileVersion version)
+{
+ switch( version )
+ {
+ default: return ProfileFamily::Unknown;
+
+#define PROFILE_VERSION(TAG, FAMILY) case ProfileVersion::TAG: return ProfileFamily::FAMILY;
+#include "profile-defs.h"
+ }
+}
+
+}}