blob: dcee3cadf214e8af8acdae2779638f7dfaa895a6 [file] [log] [blame]
John Kessenichf3e2a892013-12-13 18:38:43 +00001#version 400 core
2
3#extension GL_ARB_separate_shader_objects : enable
4
5layout(vertices = 4) out;
6
7out gl_PerVertex {
8 vec4 gl_Position;
9} gl_out[3]; // ERROR, wrong size
10
11out int a[gl_out.length()];
12out int outb[5]; // ERROR, wrong size
13out int outc[];
14
15void main()
16{
17 vec4 p = gl_in[1].gl_Position;
18 float ps = gl_in[1].gl_PointSize;
19 float cd = gl_in[1].gl_ClipDistance[2];
20
21 int pvi = gl_PatchVerticesIn;
22 int pid = gl_PrimitiveID;
23 int iid = gl_InvocationID;
24
25 gl_out[1].gl_Position = p;
26 gl_out[1].gl_PointSize = ps; // ERROR
27}
John Kessenich7c908d22013-12-18 03:06:24 +000028
29out float outf; // ERROR, no array