Backward incompatible: Turn on PureOperatorBuiltins: use only enum-based built-in functions in the AST.

If this breaks your AST consumer, best is to modify it to test
against the enum values instead of doing string comparisons on
built-in function names.  This is the reason the change was made.

If you need the old behavior, you should be able to get it back by changing
PureOperatorBuiltins to be false instead of true.  This path will work for
a while, but is marked deprecated.

Also, the old behavior is tagged as release 2.4.
This commit is contained in:
John Kessenich
2015-08-19 13:34:18 -06:00
parent a32d8f620d
commit fc51d284aa
41 changed files with 1092 additions and 967 deletions

View File

@@ -13,7 +13,7 @@ Shader version: 110
0:17 move second child to first child (temp 4-component vector of float)
0:17 'v' (temp 4-component vector of float)
0:17 vector swizzle (temp 4-component vector of float)
0:17 Function Call: texture2D(s21;vf2; (global 4-component vector of float)
0:17 texture (global 4-component vector of float)
0:17 'texSampler2D' (uniform sampler2D)
0:17 divide (temp 2-component vector of float)
0:17 add (temp 2-component vector of float)
@@ -33,7 +33,7 @@ Shader version: 110
0:19 move second child to first child (temp 4-component vector of float)
0:19 'w' (temp 4-component vector of float)
0:19 add (temp 4-component vector of float)
0:19 Function Call: texture3D(s31;vf3; (global 4-component vector of float)
0:19 texture (global 4-component vector of float)
0:19 'texSampler3D' (uniform sampler3D)
0:19 'coords' (smooth in 3-component vector of float)
0:19 'v' (temp 4-component vector of float)
@@ -72,7 +72,7 @@ Shader version: 110
0:17 move second child to first child (temp 4-component vector of float)
0:17 'v' (temp 4-component vector of float)
0:17 vector swizzle (temp 4-component vector of float)
0:17 Function Call: texture2D(s21;vf2; (global 4-component vector of float)
0:17 texture (global 4-component vector of float)
0:17 'texSampler2D' (uniform sampler2D)
0:17 divide (temp 2-component vector of float)
0:17 add (temp 2-component vector of float)
@@ -92,7 +92,7 @@ Shader version: 110
0:19 move second child to first child (temp 4-component vector of float)
0:19 'w' (temp 4-component vector of float)
0:19 add (temp 4-component vector of float)
0:19 Function Call: texture3D(s31;vf3; (global 4-component vector of float)
0:19 texture (global 4-component vector of float)
0:19 'texSampler3D' (uniform sampler3D)
0:19 'coords' (smooth in 3-component vector of float)
0:19 'v' (temp 4-component vector of float)