diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-07-13 09:12:50 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-07-13 09:17:27 -0700 |
| commit | 6da80f58ba8f51fc768f177f28a7d818b03c434e (patch) | |
| tree | 7bc2a09c412856951e036622f2b9d3a2742bcd4c /source/slang/compiler.cpp | |
| parent | 72a3e97fe6bfdffee253ad008cab7cdd3b9e796f (diff) | |
Allow GLSL `#version` to be selected based on profile
Fixes #83
- The basic idea is that I added a bunch of more specific profile names line `glsl_vertex_430` which indicate the desired GLSL version the user wants.
- An explicit `#version` line in the code always overrides one specified by profile, though
Diffstat (limited to 'source/slang/compiler.cpp')
| -rw-r--r-- | source/slang/compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/compiler.cpp b/source/slang/compiler.cpp index 284bb200a..4c3885ebf 100644 --- a/source/slang/compiler.cpp +++ b/source/slang/compiler.cpp @@ -72,7 +72,7 @@ namespace Slang Profile Profile::LookUp(char const* name) { #define PROFILE(TAG, NAME, STAGE, VERSION) if(strcmp(name, #NAME) == 0) return Profile::TAG; - #define PROFILE_ALIAS(TAG, NAME) if(strcmp(name, #NAME) == 0) return Profile::TAG; + #define PROFILE_ALIAS(TAG, DEF, NAME) if(strcmp(name, #NAME) == 0) return Profile::TAG; #include "profile-defs.h" return Profile::Unknown; |
