Change infrastructure to support constant folding across built-in functions, as requi...
authorJohn Kessenich <cepheus@frii.com>
Thu, 7 Mar 2013 19:22:07 +0000 (19:22 +0000)
committerJohn Kessenich <cepheus@frii.com>
Thu, 7 Mar 2013 19:22:07 +0000 (19:22 +0000)
commit53fb465729dc019b0ddd72ab59286101de9223d3
treea8347b0ea5eb12289ee29f08bb71c1e40a857f2f
parent3f3e0ad3ad970b126e51b09394d047d16bf18699
Change infrastructure to support constant folding across built-in functions, as required by 1.2 semantics.  Partially fleshed out with min/max and some trig functions.  Still have to complete all operations.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20806 e7fa87d3-cd2b-0410-9028-fcbf551c1848
14 files changed:
Test/constErrors.frag
Test/constFold.frag [new file with mode: 0644]
Test/testlist
glslang.vcxproj
glslang.vcxproj.filters
glslang/Include/intermediate.h
glslang/MachineIndependent/Constant.cpp [new file with mode: 0644]
glslang/MachineIndependent/Intermediate.cpp
glslang/MachineIndependent/ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.h
glslang/MachineIndependent/glslang.l
glslang/MachineIndependent/glslang.y
glslang/MachineIndependent/localintermediate.h
glslang/MachineIndependent/parseConst.cpp