Note: lots of test results changed due to listing the members of a block when printing types. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23682 e7fa87d3-cd2b-0410-9028-fcbf551c1848
		
			
				
	
	
		
			25 lines
		
	
	
		
			316 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			316 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
#version 330 compatibility
 | 
						|
 | 
						|
in vec4 inVar;
 | 
						|
out vec4 outVar;
 | 
						|
 | 
						|
varying vec4 varyingVar;
 | 
						|
 | 
						|
void main()
 | 
						|
{
 | 
						|
    gl_FragColor = varyingVar;
 | 
						|
    gl_FragData[1] = inVar;
 | 
						|
    int buffer = 4;
 | 
						|
}
 | 
						|
 | 
						|
#extension GL_ARB_separate_shader_objects : enable
 | 
						|
 | 
						|
in gl_PerFragment {
 | 
						|
    vec4 gl_Color;
 | 
						|
};
 | 
						|
 | 
						|
void foo()
 | 
						|
{
 | 
						|
    vec4 c = gl_Color;
 | 
						|
}
 |