2013-11-05 22:07:25 +04:00
|
|
|
#version 150 core
|
|
|
|
|
|
|
|
in vec4 gl_FragCoord;
|
|
|
|
layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord; // ERROR
|
|
|
|
layout(pixel_center_integer) in vec4 gl_FragCoord; // ERROR
|
|
|
|
layout(origin_upper_left) in vec4 foo; // ERROR
|
|
|
|
layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
vec4 c = gl_FragCoord;
|
|
|
|
}
|
|
|
|
|
2013-11-21 01:12:43 +04:00
|
|
|
layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord; // ERROR, declared after use
|
2013-12-05 00:41:33 +04:00
|
|
|
|
|
|
|
in struct S { float f; } s;
|