• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 450
2
3layout(location = 1) in vec4 in1;
4in vec4 in2;                        // ERROR
5layout(location = 3) in vec4 in3;
6
7layout(location = 1) out vec4 out1;
8out vec4 out2;                      // ERROR
9layout(location = 3) out vec4 out3;
10
11layout(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;
19out inb3 {                          // ERROR
20    vec4 a;
21    vec4 b;
22} inbi3;
23
24layout(location = 14) out struct S1 { vec4 a; } s1;
25out struct S2 { vec4 a; } s2;       // ERROR
26
27struct SS { int a; };
28out layout(location = 15) SS ss1;
29out SS ss2;                         // ERROR
30
31out gl_PerVertex {
32    vec4 gl_Position;
33    float gl_ClipDistance[2];
34};
35
36void main()
37{
38    gl_ClipDistance[0] = 1.0;
39}
40