diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-07-17 11:53:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-17 11:53:56 -0700 |
| commit | b4977c1626f9791bc0c84c75e7012ddd7cb40913 (patch) | |
| tree | 2db423b4b6e8420e614cb49fe7534f2b7591078d /source/slang/profile.h | |
| parent | 0b4992fb69e359a7e566cca42331a196904556f5 (diff) | |
| parent | dc0e9d7bca21d8a67ec9f044c0d390bda6ebfcbf (diff) | |
Merge pull request #110 from tfoleyNV/gl-layer-pick-version
Pick correct GLSL version when `gl_Layer` used
Diffstat (limited to 'source/slang/profile.h')
| -rw-r--r-- | source/slang/profile.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/profile.h b/source/slang/profile.h index 6d55d3195..3b5242ada 100644 --- a/source/slang/profile.h +++ b/source/slang/profile.h @@ -70,6 +70,11 @@ namespace Slang ProfileVersion GetVersion() const { return ProfileVersion(uint32_t(raw) & 0xFFFF); } ProfileFamily getFamily() const { return getProfileFamily(GetVersion()); } + void setVersion(ProfileVersion version) + { + raw = (raw & ~0xFFFF) | uint32_t(version); + } + static Profile LookUp(char const* name); RawVal raw = Unknown; |
