diff options
author | John Kessenich <cepheus@frii.com> | 2012-12-12 21:23:55 +0000 |
---|---|---|
committer | John Kessenich <cepheus@frii.com> | 2012-12-12 21:23:55 +0000 |
commit | e320a1854ba10065374610d4f88966c84eff21e2 (patch) | |
tree | 69af91376cc8d5a7a109bda90fd44df8167d3bd9 /glslang/MachineIndependent/Intermediate.cpp | |
parent | 200b2734d7639ea66ff2404f94b35a882868fd4d (diff) | |
download | glslang-e320a1854ba10065374610d4f88966c84eff21e2.tar.gz |
Remove the pack/unpack languages and bring grammar up from 1.1 to 4.2 and fix the affected 1.1 productions and semantics to still work correctly for 1.1 shaders.
For 4.2, largely, it is only the grammar that is working. Productions and semantics are mostly missing. Lexical analysis is mostly done, but not in the preprocessor, which still can't handle uint and double literals.
The grammar and token names are reorganized to match the specification, to allow easier comparison between the specification and the working grammar.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@19946 e7fa87d3-cd2b-0410-9028-fcbf551c1848
Diffstat (limited to 'glslang/MachineIndependent/Intermediate.cpp')
-rw-r--r-- | glslang/MachineIndependent/Intermediate.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/glslang/MachineIndependent/Intermediate.cpp b/glslang/MachineIndependent/Intermediate.cpp index 96c90747..6dc3ca8a 100644 --- a/glslang/MachineIndependent/Intermediate.cpp +++ b/glslang/MachineIndependent/Intermediate.cpp @@ -554,6 +554,14 @@ TIntermTyped* TIntermediate::addComma(TIntermTyped* left, TIntermTyped* right, T } } +TIntermTyped* TIntermediate::addMethod(TIntermTyped* object, TType& type, const TString* name, TSourceLoc line) +{ + TIntermMethod* method = new TIntermMethod(object, type, *name); + method->setLine(line); + + return method; +} + // // For "?:" test nodes. There are three children; a condition, // a true path, and a false path. The two paths are specified |