blob: 43998525ea633e86fe981328e8db3eb4fe6d336a [file] [log] [blame]
John Kessenich71facdf2017-05-17 18:28:19 -06001#version 450
2
3layout(location = 1) in vec4 in1;
John Kessenich7c9129b2017-05-24 23:10:28 -06004in vec4 in2; // ERROR
John Kessenich71facdf2017-05-17 18:28:19 -06005layout(location = 3) in vec4 in3;
6
7layout(location = 1) out vec4 out1;
John Kessenich7c9129b2017-05-24 23:10:28 -06008out vec4 out2; // ERROR
John Kessenich71facdf2017-05-17 18:28:19 -06009layout(location = 3) out vec4 out3;
10
John Kessenich1d585ac2017-05-20 12:14:13 -060011layout(location = 10) out inb1 {
12 vec4 a;
13 vec4 b;
14} inbi1;
15out inb2 {
16 layout(location = 12) vec4 a;
17 layout(location = 13) vec4 b;
18} inbi2;
John Kessenich7c9129b2017-05-24 23:10:28 -060019out inb3 { // ERROR
John Kessenich1d585ac2017-05-20 12:14:13 -060020 vec4 a;
21 vec4 b;
22} inbi3;
23
24layout(location = 14) out struct S1 { vec4 a; } s1;
John Kessenich7c9129b2017-05-24 23:10:28 -060025out struct S2 { vec4 a; } s2; // ERROR
John Kessenich1d585ac2017-05-20 12:14:13 -060026
27struct SS { int a; };
28out layout(location = 15) SS ss1;
John Kessenich7c9129b2017-05-24 23:10:28 -060029out SS ss2; // ERROR
30
31out gl_PerVertex {
32 vec4 gl_Position;
33 float gl_ClipDistance[2];
34};
John Kessenich71facdf2017-05-17 18:28:19 -060035
36void main()
37{
John Kessenich7c9129b2017-05-24 23:10:28 -060038 gl_ClipDistance[0] = 1.0;
John Kessenich71facdf2017-05-17 18:28:19 -060039}