Added error output to the preprocessor.

This patch distinguishes preprocessing errors with normal parsing
errors and gives glslangValidator the ability to output preprocessing
errors.
This commit is contained in:
Andrew Woloszyn
2015-06-24 17:00:46 -04:00
parent 3a194f7ba4
commit aae1ad8296
21 changed files with 205 additions and 135 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,8 @@
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
ERROR: 0:9: '#error' : This should show up in pp output .
ERROR: 0:14: '#' : invalid directive: def
ERROR: 0:15: 'preprocessor evaluation' : undefined macro in expression not allowed in es profile Y
ERROR: 0:21: '' : missing #endif
ERROR: 4 compilation errors. No code generated.

View File

@@ -1,16 +0,0 @@
#version 310 es
#error This should show up in pp output .
int main(){
}

View File

@@ -0,0 +1,4 @@
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
WARNING: 0:5: '#extension' : extension is only partially supported: GL_EXT_gpu_shader5
WARNING: 0:6: '#extension' : extension not supported: GL_EXT_shader_texture_image_samples

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,2 @@
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.

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,4 @@
int x(){
something that shouldnt compile;
}