Merge pull request #16 from google/pp-directive

Preprocessing directive handling
This commit is contained in:
John Kessenich
2015-07-14 19:36:29 -06:00
9 changed files with 87 additions and 48 deletions

View File

@@ -0,0 +1,2 @@
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.

View File

@@ -0,0 +1,5 @@
#version 310 es
#line 1 2
#pragma something
void main(){ }

View File

@@ -1,24 +1,39 @@
#line 300
#line 2
#line 10
#line 2
#line 0
#line 4
#line 8
void main(){
gl_Position = vec4(10);
}
#line 8 4
#line 12 3
#line 1
#line 300
#line 2
#line 10
#line 2
#line 0
#line 4
#line 8
void main(){
gl_Position = vec4(10);
}
#line 8 4
#line 12 3
#line 1