diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-07-19 10:20:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-19 10:20:12 -0700 |
| commit | c5ed9e8d6bc1668d6075b42b17d65a97c168c98b (patch) | |
| tree | f8016cf92678a6dfaa1903a161ebcad78f0f42d0 /source/slang/parser.cpp | |
| parent | a727017340165d02977387e1e1a2a7e328308295 (diff) | |
| parent | 55a29042a2826f26272c9e1b65cd3745bad3ee31 (diff) | |
Merge pull request #124 from tfoleyNV/gh-122
Fix up translation of `GetDimensions()`
Diffstat (limited to 'source/slang/parser.cpp')
| -rw-r--r-- | source/slang/parser.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/slang/parser.cpp b/source/slang/parser.cpp index 50205ff29..a624c58c5 100644 --- a/source/slang/parser.cpp +++ b/source/slang/parser.cpp @@ -729,6 +729,19 @@ namespace Slang AddModifier(&modifierLink, modifier); } + else if (AdvanceIf(parser, "__glsl_version")) + { + auto modifier = new RequiredGLSLVersionModifier(); + modifier->Position = loc; + + parser->ReadToken(TokenType::LParent); + modifier->versionNumberToken = parser->ReadToken(TokenType::IntegerLiteral); + parser->ReadToken(TokenType::RParent); + + AddModifier(&modifierLink, modifier); + } + + else if (AdvanceIf(parser, "layout")) { parser->ReadToken(TokenType::LParent); |
