diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-07-12 14:52:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-12 14:52:21 -0700 |
| commit | 9058358792fa393e0e92af80f24a54a037aa9691 (patch) | |
| tree | 156c36903426a4f18f0e4c857d9d9eb987459789 /source/slang/parser.cpp | |
| parent | 6101e483ae8ea9e10db2b5a9423af3cc7fafb710 (diff) | |
| parent | 02f77bbf12981abe376b2d5987684224a50ae4b2 (diff) | |
Merge pull request #80 from tfoleyNV/falcor-work
Fixes for shader cross-compilation
Diffstat (limited to 'source/slang/parser.cpp')
| -rw-r--r-- | source/slang/parser.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/slang/parser.cpp b/source/slang/parser.cpp index de63793b1..8314b0930 100644 --- a/source/slang/parser.cpp +++ b/source/slang/parser.cpp @@ -717,6 +717,17 @@ namespace Slang AddModifier(&modifierLink, modifier); } + else if (AdvanceIf(parser, "__glsl_extension")) + { + auto modifier = new RequiredGLSLExtensionModifier(); + modifier->Position = loc; + + parser->ReadToken(TokenType::LParent); + modifier->extensionNameToken = parser->ReadToken(TokenType::Identifier); + parser->ReadToken(TokenType::RParent); + + AddModifier(&modifierLink, modifier); + } else if (AdvanceIf(parser, "layout")) { |
