Improve preprocessor by using GLSL scanner, allowing read-only strings to be compiled, unifying of line # tracking, and correct detection that ES #version appeared after a comment.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23721 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2013-10-28 18:12:06 +00:00
parent 9497485e14
commit ea869fb403
20 changed files with 285 additions and 300 deletions

View File

@@ -0,0 +1,30 @@
empty.frag
WARNING: #version: statement missing; use #version on first line of shader
0:? Sequence
0:? Linker Objects
empty2.frag
WARNING: #version: statement missing; use #version on first line of shader
0:? Sequence
0:? Linker Objects
empty3.frag
Warning, version 110 is not yet complete; most features are present, but a few are missing.
0:? Sequence
0:? Linker Objects
Linked fragment stage:
ERROR: Linking fragment stage: Cannot mix ES profile with non-ES profile shaders
ERROR: Linking fragment stage: Cannot mix ES profile with non-ES profile shaders
ERROR: Linking fragment stage: Missing entry point: Each stage requires one "void main()" entry point
0:? Sequence
0:? Linker Objects

View File

@@ -1,5 +1,6 @@
ERROR: #version: statement must appear first in es-profile shader; before comments or newlines
ERROR: 1 compilation errors. No code generated.
ERROR: 0:34: '#version' : must occur first in shader
ERROR: 2 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:41 Function Definition: main( (void)