John Kessenich | f3e2a89 | 2013-12-13 18:38:43 +0000 | [diff] [blame] | 1 | #version 400 core
|
| 2 |
|
| 3 | #extension GL_ARB_separate_shader_objects : enable
|
| 4 |
|
| 5 | layout(vertices = 4) out;
|
| 6 |
|
| 7 | out gl_PerVertex {
|
| 8 | vec4 gl_Position;
|
| 9 | } gl_out[3]; // ERROR, wrong size
|
| 10 |
|
| 11 | out int a[gl_out.length()];
|
| 12 | out int outb[5]; // ERROR, wrong size
|
| 13 | out int outc[];
|
| 14 |
|
| 15 | void 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 Kessenich | 7c908d2 | 2013-12-18 03:06:24 +0000 | [diff] [blame] | 28 |
|
| 29 | out float outf; // ERROR, no array
|