Fixes to scanning:
- do version checking for the line-continuation character - check for built-in names in #undef - bug fix for #elif after #else - do version checking for use of floating point suffixes (f, LF, etc.) git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24011 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
67c9f3a720
commit
69aa9c1b84
21 changed files with 210 additions and 59 deletions
|
|
@ -85,3 +85,52 @@ sum += 600000.0;
|
|||
// sum should be 987600301.0
|
||||
gl_Position = vec4(sum);
|
||||
}
|
||||
|
||||
#define A 1
|
||||
#define C 0
|
||||
#define E 0
|
||||
#define F 1
|
||||
#if A
|
||||
#if C
|
||||
#if E
|
||||
int selected4 = 1;
|
||||
#elif F
|
||||
int selected4 = 2;
|
||||
#else
|
||||
int selected4 = 3;
|
||||
#endif
|
||||
#endif
|
||||
int selected4 = 4;
|
||||
#endif
|
||||
|
||||
#define ZA 1
|
||||
#define ZC 1
|
||||
#define ZE 0
|
||||
#define ZF 1
|
||||
#if ZA
|
||||
#if ZC
|
||||
#if ZE
|
||||
int selected2 = 1;
|
||||
#elif ZF
|
||||
int selected2 = 2;
|
||||
#else
|
||||
int selected2 = 3;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define AZA 1
|
||||
#define AZC 1
|
||||
#define AZE 0
|
||||
#define AZF 0
|
||||
#if AZA
|
||||
#if AZC
|
||||
#if AZE
|
||||
int selected3 = 1;
|
||||
#elif AZF
|
||||
int selected3 = 2;
|
||||
#else
|
||||
int selected3 = 3;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue