Markus Tavenrath | 7b89e75 | 2017-01-23 16:53:16 -0800 | [diff] [blame] | 1 | #version 450
|
| 2 |
|
| 3 | vec4 getColor();
|
| 4 |
|
John Kessenich | 5a867ac | 2018-04-01 21:22:34 -0600 | [diff] [blame] | 5 | layout(location=0) out vec4 color;
|
| 6 |
|
| 7 | int a1[]; // max size from link1
|
| 8 | int a2[]; // max size from link2
|
| 9 | int b[5];
|
| 10 | int c[];
|
| 11 | int i;
|
| 12 |
|
| 13 | buffer bnameRuntime { float r[]; };
|
| 14 | buffer bnameImplicit { float m[]; };
|
Markus Tavenrath | 7b89e75 | 2017-01-23 16:53:16 -0800 | [diff] [blame] | 15 |
|
| 16 | void main()
|
| 17 | {
|
| 18 | color = getColor();
|
John Kessenich | 5a867ac | 2018-04-01 21:22:34 -0600 | [diff] [blame] | 19 |
|
| 20 | a1[8] = 1;
|
| 21 | a2[1] = 1;
|
| 22 | b[i] = 1;
|
| 23 | c[3] = 1;
|
Markus Tavenrath | 7b89e75 | 2017-01-23 16:53:16 -0800 | [diff] [blame] | 24 | }
|