mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-10 04:20:06 +00:00
c719481d43
- hide non-redeclared anonymous members - array size limit checking - illegal member qualifiers - additional members git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24406 e7fa87d3-cd2b-0410-9028-fcbf551c1848
42 lines
652 B
GLSL
42 lines
652 B
GLSL
#version 330 compatibility
|
|
|
|
in vec4 inVar;
|
|
out vec4 outVar;
|
|
|
|
varying vec4 varyingVar;
|
|
|
|
void main()
|
|
{
|
|
gl_FragColor = varyingVar; // link ERROR: user output was used
|
|
gl_FragData[1] = inVar; // link ERROR: user output was used
|
|
int buffer = 4;
|
|
}
|
|
|
|
#extension GL_ARB_separate_shader_objects : enable
|
|
|
|
in gl_PerFragment {
|
|
vec4 gl_Color;
|
|
};
|
|
|
|
void foo()
|
|
{
|
|
vec4 c = gl_Color;
|
|
outVar = inVar;
|
|
}
|
|
|
|
in gl_block { // ERROR
|
|
int gl_i;
|
|
} gl_name;
|
|
|
|
in myBlock {
|
|
int gl_i; // ERROR
|
|
} gl_name; // ERROR
|
|
|
|
in gl_PerVertex { // ERROR
|
|
vec4 gl_FragCoord;
|
|
} gl_in[];
|
|
|
|
in gl_PerVertex { // ERROR
|
|
vec4 gl_FragCoord;
|
|
}; // ERROR
|