yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
625eb25d
main
1#version 140 2 3uniform isamplerBuffer sbuf ; 4 5layout (std140 )uniform blockName { 6int anonMem ; 7}; 8 9void main () 10{ 11int id = gl_InstanceID ; 12id += anonMem ; 13id += texelFetch (sbuf ,8 ).w ; 14gl_ClipVertex ;// could be ERROR, but compiling under compatibility profile 15gl_Color ;// could be ERROR, but compiling under compatibility profile 16gl_LightSource [0 ];// could be ERROR, but compiling under compatibility profile 17gl_DepthRange .far ; 18gl_TexCoord ;// could be ERROR, but compiling under compatibility profile 19gl_FogFragCoord ;// could be ERROR, but compiling under compatibility profile 20gl_FrontColor ;// could be ERROR, but compiling under compatibility profile 21} 22 23out vec4 gl_Position ;// ERROR 24 25layout (location = 9 )in vec4 locBad ;// ERROR 26 27#extension GL_ARB_explicit_attrib_location : enable 28 29layout (location = 9 )in vec4 loc ; 30 31#extension GL_ARB_separate_shader_objects : enable 32 33out vec4 gl_Position ; 34in vec4 gl_Position ;// ERROR 35out vec3 gl_Position ;// ERROR 36 37out float gl_PointSize ; 38out vec4 gl_ClipVertex ; 39out float gl_FogFragCoord ; 40 41uniform sampler2DRect s2dr ; 42uniform sampler2DRectShadow s2drs ; 43in ivec2 itloc2 ; 44in vec2 tloc2 ; 45in vec3 tloc3 ; 46in vec4 tloc4 ; 47 48void foo () 49{ 50vec4 v = texelFetch (s2dr ,itloc2 ); 51v += texelFetch (s2dr ,itloc2 ,0.2 );// ERROR, no lod 52v += texture (s2dr ,tloc2 ); 53v += texture (s2dr ,tloc2 ,0.3 );// ERROR, no bias 54v += texture (s2drs ,tloc3 ); 55v += textureProj (s2dr ,tloc3 ); 56v += textureProj (s2dr ,tloc4 ); 57v += textureProjGradOffset (s2dr ,tloc4 ,ivec2 (0.0 ),ivec2 (0.0 ),ivec2 (1 ,2 )); 58v += textureProjGradOffset (s2drs ,tloc4 ,ivec2 (0.0 ),ivec2 (0.0 ),ivec2 (1 ,2 )); 59} 60 61void devi () 62{ 63gl_DeviceIndex ;// ERROR, no extension 64gl_ViewIndex ;// ERROR, no extension 65} 66 67#ifdef GL_EXT_device_group 68#extension GL_EXT_device_group : enable 69#endif 70 71#ifdef GL_EXT_multiview 72#extension GL_EXT_multiview : enable 73#endif 74 75void devie () 76{ 77gl_DeviceIndex ; 78gl_ViewIndex ; 79}