Add the GL_ES macro for ES personalities, along with a general mechanism for adding preambles in front of shaders without effecting line numbers, etc.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21122 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -8,3 +8,8 @@ out vec4 o;
|
||||
void main()
|
||||
{
|
||||
}
|
||||
#ifdef GL_ES
|
||||
#error GL_ES is set
|
||||
#else
|
||||
#error GL_ES is not set
|
||||
#endif
|
||||
|
||||
@@ -7,7 +7,7 @@ uniform mat4x4 m44;
|
||||
in vec3 v3;
|
||||
in vec2 v2;
|
||||
|
||||
in vec4 bad[10];
|
||||
in vec4 bad[10]; // ERROR
|
||||
|
||||
void main()
|
||||
{
|
||||
@@ -30,4 +30,10 @@ void main()
|
||||
mat3x3 im = inverse(m33);
|
||||
|
||||
mat3x2 op = outerProduct(v2, v3);
|
||||
|
||||
#ifdef GL_ES
|
||||
#error GL_ES is set
|
||||
#else
|
||||
#error GL_ES is not set
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user