Stop emitting the "#version missing" warning, and hook up the existing "suppress warnings" to a command-line option (-w).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23952 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2013-11-07 17:44:20 +00:00
parent d627502d07
commit b0a7eb599b
9 changed files with 46 additions and 21 deletions

View file

@ -37,3 +37,10 @@ in vec4 gl_Color;
flat in vec4 gl_Color;
flat in vec4 gl_Color[2]; // ERROR, array
vec4 gl_Color; // ERROR, storage
#extension GL_ARB_texture_gather : warn
void bar()
{
vec4 s = textureGather(sampC, vec3(0.2));
}

View file

@ -3,7 +3,9 @@ ERROR: 0:25: 'texture gather function' : not supported for this version or the e
ERROR: 0:35: 'redeclaration' : cannot change the type of gl_Color
ERROR: 0:38: 'gl_Color' : redeclaring non-array as array
ERROR: 0:39: 'redeclaration' : cannot change storage, memory, or auxiliary qualification of gl_Color
ERROR: 4 compilation errors. No code generated.
ERROR: 0:43: 'bar' : function already has a body
WARNING: 0:45: extension GL_ARB_texture_gather is being used for texture gather function
ERROR: 5 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:16 Function Definition: main( (void)
@ -40,6 +42,18 @@ ERROR: node is still EOpNull!
0:32 0.200000
0:32 0.200000
0:32 0.200000
0:43 Function Definition: bar( (void)
0:43 Function Parameters:
0:45 Sequence
0:45 Sequence
0:45 move second child to first child (4-component vector of float)
0:45 's' (4-component vector of float)
0:45 Function Call: textureGather(sC1;vf3; (4-component vector of float)
0:45 'sampC' (uniform samplerCube)
0:45 Constant:
0:45 0.200000
0:45 0.200000
0:45 0.200000
0:? Linker Objects
0:? 'a' (3-component vector of float)
0:? 'b' (float)

View file

@ -1,4 +1,3 @@
WARNING: #version: statement missing; use #version on first line of shader
ERROR: 0:46: 'xyxwx' : illegal vector field selection
ERROR: 0:46: 'xyxwx' : illegal vector field selection
ERROR: 2 compilation errors. No code generated.

View file

@ -1,11 +1,9 @@
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

View file

@ -1,4 +1,3 @@
WARNING: #version: statement missing; use #version on first line of shader
ERROR: 0:1: 'main' : function cannot take any parameter(s)
ERROR: 0:1: 'int' : main function cannot return a value
ERROR: 2 compilation errors. No code generated.

View file

@ -1,4 +1,3 @@
WARNING: #version: statement missing; use #version on first line of shader
0:? Sequence
0:5 Function Definition: main( (void)
0:5 Function Parameters: