1#version 150 core 2 3in vec4 gl_FragCoord; 4layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord; // ERROR 5layout(pixel_center_integer) in vec4 gl_FragCoord; // ERROR 6layout(origin_upper_left) in vec4 foo; // ERROR 7layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord; 8 9void main() 10{ 11 vec4 c = gl_FragCoord; 12} 13 14layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord; // ERROR, declared after use 15 16in struct S { float f; } s; 17 18float patch = 3.1; 19 20uniform sampler2DMS sms; 21uniform isampler2DMS isms; 22uniform usampler2DMS usms; 23uniform sampler2DMSArray smsa; 24uniform isampler2DMSArray ismsa; 25uniform usampler2DMSArray usmsa; 26 27flat in ivec2 p2; 28flat in ivec3 p3; 29flat in int samp; 30 31void barWxyz() 32{ 33 ivec2 t11 = textureSize( sms); 34 ivec2 t12 = textureSize(isms); 35 ivec2 t13 = textureSize(usms); 36 ivec3 t21 = textureSize( smsa); 37 ivec3 t22 = textureSize(ismsa); 38 ivec3 t23 = textureSize(usmsa); 39 vec4 t31 = texelFetch( sms, p2, samp); 40 ivec4 t32 = texelFetch(isms, p2, samp); 41 uvec4 t33 = texelFetch(usms, p2, 3); 42 vec4 t41 = texelFetch( smsa, p3, samp); 43 ivec4 t42 = texelFetch(ismsa, ivec3(2), samp); 44 uvec4 t43 = texelFetch(usmsa, p3, samp); 45} 46 47int primitiveID() 48{ 49 return gl_PrimitiveID; 50} 51