Merge pull request #16 from google/pp-directive
Preprocessing directive handling
This commit is contained in:
commit
279012d8c4
9 changed files with 87 additions and 48 deletions
2
Test/baseResults/preprocessor.line.frag.err
Normal file
2
Test/baseResults/preprocessor.line.frag.err
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
|
||||
|
||||
5
Test/baseResults/preprocessor.line.frag.out
Normal file
5
Test/baseResults/preprocessor.line.frag.out
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#version 310 es
|
||||
#line 1 2
|
||||
#pragma something
|
||||
void main(){ }
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
4
Test/preprocessor.line.frag
Normal file
4
Test/preprocessor.line.frag
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#version 310 es
|
||||
#line 1 2
|
||||
#pragma something
|
||||
void main() {}
|
||||
|
|
@ -3,6 +3,7 @@ preprocessor.errors.vert
|
|||
preprocessor.extensions.vert
|
||||
preprocessor.function_macro.vert
|
||||
preprocessor.line.vert
|
||||
preprocessor.line.frag
|
||||
preprocessor.pragma.vert
|
||||
preprocessor.simple.vert
|
||||
preprocessor.success_if_parse_would_fail.vert
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue