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

@@ -99,17 +99,17 @@ ERROR: node is still EOpNull!
0:65 'level1_high' (temp highp int)
0:65 Constant:
0:65 0 (const int)
0:67 Function Call: texture2D(s21;vf2; (global lowp 4-component vector of float)
0:67 texture (global lowp 4-component vector of float)
0:67 'samplerLow' (uniform lowp sampler2D)
0:67 Constant:
0:67 0.100000
0:67 0.200000
0:68 Function Call: texture2D(s21;vf2; (global mediump 4-component vector of float)
0:68 texture (global mediump 4-component vector of float)
0:68 'samplerMed' (uniform mediump sampler2D)
0:68 Constant:
0:68 0.100000
0:68 0.200000
0:69 Function Call: texture2D(s21;vf2; (global highp 4-component vector of float)
0:69 texture (global highp 4-component vector of float)
0:69 'samplerHigh' (uniform highp sampler2D)
0:69 Constant:
0:69 0.100000
@@ -218,17 +218,17 @@ ERROR: node is still EOpNull!
0:65 'level1_high' (temp highp int)
0:65 Constant:
0:65 0 (const int)
0:67 Function Call: texture2D(s21;vf2; (global lowp 4-component vector of float)
0:67 texture (global lowp 4-component vector of float)
0:67 'samplerLow' (uniform lowp sampler2D)
0:67 Constant:
0:67 0.100000
0:67 0.200000
0:68 Function Call: texture2D(s21;vf2; (global mediump 4-component vector of float)
0:68 texture (global mediump 4-component vector of float)
0:68 'samplerMed' (uniform mediump sampler2D)
0:68 Constant:
0:68 0.100000
0:68 0.200000
0:69 Function Call: texture2D(s21;vf2; (global highp 4-component vector of float)
0:69 texture (global highp 4-component vector of float)
0:69 'samplerHigh' (uniform highp sampler2D)
0:69 Constant:
0:69 0.100000