Merge pull request #16 from google/pp-directive
Preprocessing directive handling
This commit is contained in:
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user