John Kessenich | e9942d2 | 2013-04-09 01:20:01 +0000 | [diff] [blame] | 1 | #version 300 es |
John Kessenich | 41a36bb | 2013-06-19 05:41:25 +0000 | [diff] [blame] | 2 | precision mediump float; |
John Kessenich | e9942d2 | 2013-04-09 01:20:01 +0000 | [diff] [blame] | 3 | in vec4 pos; |
John Kessenich | 63eed38 | 2013-04-10 23:30:05 +0000 | [diff] [blame] | 4 | layout (location = 2) in vec4 color; // ERROR |
John Kessenich | e9942d2 | 2013-04-09 01:20:01 +0000 | [diff] [blame] | 5 | |
John Kessenich | 63eed38 | 2013-04-10 23:30:05 +0000 | [diff] [blame] | 6 | layout(location = 1) out vec4 c; |
John Kessenich | e9942d2 | 2013-04-09 01:20:01 +0000 | [diff] [blame] | 7 | layout(location = 3) out vec4 p; |
John Kessenich | 63eed38 | 2013-04-10 23:30:05 +0000 | [diff] [blame] | 8 | layout(location = 4) out vec4 q[2]; |
John Kessenich | e9942d2 | 2013-04-09 01:20:01 +0000 | [diff] [blame] | 9 | |
| 10 | void main() |
| 11 | { |
| 12 | c = color; |
| 13 | p = pos; |
John Kessenich | 63eed38 | 2013-04-10 23:30:05 +0000 | [diff] [blame] | 14 | q[1] = pos; |
John Kessenich | e9942d2 | 2013-04-09 01:20:01 +0000 | [diff] [blame] | 15 | } |
John Kessenich | 0b39137 | 2013-12-05 20:07:56 +0000 | [diff] [blame] | 16 | |
| 17 | layout(location = 40) out float ca[4]; |
| 18 | layout(location = 41) out float cb[2]; // ERROR, overlap |
| 19 | layout(location = 39) out float cc[6]; // ERROR, overlap |