From fcf83dbf9effab3bd98bad2b83b2468b7eb05cfd Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Fri, 9 Jun 2017 11:34:21 -0700 Subject: Initial import of code. --- source/slang/profile.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 source/slang/profile.cpp (limited to 'source/slang/profile.cpp') 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" + } +} + +}} -- cgit v1.2.3