John Kessenich | 564842b | 2013-01-10 18:20:47 +0000 | [diff] [blame] | 1 | #version 140 |
| 2 | |
| 3 | varying vec4 v; |
| 4 | |
| 5 | in vec4 i; |
| 6 | out vec4 o; |
| 7 | |
John Kessenich | e7c59c1 | 2013-10-16 22:28:35 +0000 | [diff] [blame] | 8 | in float gl_ClipDistance[5]; |
| 9 | |
John Kessenich | 564842b | 2013-01-10 18:20:47 +0000 | [diff] [blame] | 10 | void main() |
| 11 | { |
John Kessenich | e7c59c1 | 2013-10-16 22:28:35 +0000 | [diff] [blame] | 12 | float clip = gl_ClipDistance[2]; |
John Kessenich | 564842b | 2013-01-10 18:20:47 +0000 | [diff] [blame] | 13 | } |
John Kessenich | b51f62c | 2013-04-11 16:31:09 +0000 | [diff] [blame] | 14 | #ifdef GL_ES |
| 15 | #error GL_ES is set |
| 16 | #else |
| 17 | #error GL_ES is not set |
| 18 | #endif |
John Kessenich | afda241 | 2013-12-04 20:41:33 +0000 | [diff] [blame] | 19 | |
| 20 | in struct S { float f; } s; // ERROR |
John Kessenich | e8fe7b8 | 2013-12-18 18:47:12 +0000 | [diff] [blame] | 21 | |
John Kessenich | 782aa83 | 2014-02-12 05:15:49 +0000 | [diff] [blame] | 22 | float patch = 3.1; |
| 23 | |
| 24 | layout(location=3) in vec4 vl; // ERROR |
| 25 | |
| 26 | #extension GL_ARB_separate_shader_objects : enable |
| 27 | |
| 28 | layout(location=4) in vec4 vl2; |
John Kessenich | f5dd2f5 | 2014-03-26 03:17:31 +0000 | [diff] [blame] | 29 | |
| 30 | void foo() |
| 31 | { |
| 32 | vec2 r1 = modf(v.xy, v.zw); // ERROR, v.zw not l-value |
| 33 | vec2 r2 = modf(o.xy, o.zw); |
| 34 | } |