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/profile.h | |
| 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/profile.h')
| -rw-r--r-- | source/slang/profile.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/profile.h b/source/slang/profile.h index f8839be84..6d55d3195 100644 --- a/source/slang/profile.h +++ b/source/slang/profile.h @@ -54,6 +54,7 @@ namespace Slang Unknown, #define PROFILE(TAG, NAME, STAGE, VERSION) TAG = (uint32_t(Stage::STAGE) << 16) | uint32_t(ProfileVersion::VERSION), +#define PROFILE_ALIAS(TAG, DEF, NAME) TAG = DEF, #include "profile-defs.h" }; |
