Eliminate flex as the GLSL lexical analyzer, going from two nested lexical analyzers down to one, leaving just the preprocessor's lexical analysis. A new layer replaces it, to translate from the preprocessor's view of tokenization to glslang's view of tokenization.
Also: - change source locations from an int to TSourceLoc (shader number, line number) throughout - various improvements to the preprocessor git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22277 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -125,5 +125,9 @@ int linenumber = __LINE__;
|
||||
int filenumber = __FILE__;
|
||||
int version = __VERSION__;
|
||||
|
||||
#define PI (3.14)
|
||||
#define TWOPI (2.0 * PI)
|
||||
float twoPi = TWOPI;
|
||||
|
||||
#define PASTE(a,b) a ## b
|
||||
float PASTE(tod, ay) = 17;
|
||||
|
||||
Reference in New Issue
Block a user