John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 1 | #version 150 core
|
| 2 |
|
| 3 | in vec4 iv4;
|
| 4 |
|
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 5 | in float ps;
|
| 6 | in int ui;
|
John Kessenich | 019f08f | 2016-02-15 15:40:42 -0700 | [diff] [blame] | 7 | uniform sampler2D s2D;
|
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 8 |
|
| 9 | invariant gl_Position;
|
| 10 |
|
| 11 | struct s1 {
|
| 12 | int a;
|
| 13 | int a2;
|
| 14 | vec4 b[3];
|
| 15 | };
|
| 16 |
|
| 17 | struct s2 {
|
| 18 | int c;
|
| 19 | s1 d[4];
|
| 20 | };
|
| 21 |
|
| 22 | out s2 s2out;
|
| 23 |
|
| 24 | void main()
|
| 25 | {
|
| 26 | gl_Position = iv4;
|
| 27 | gl_PointSize = ps;
|
| 28 | gl_ClipDistance[2] = iv4.x;
|
| 29 | int i;
|
| 30 | s2out.d[i].b[2].w = ps;
|
John Kessenich | 019f08f | 2016-02-15 15:40:42 -0700 | [diff] [blame] | 31 |
|
| 32 | // test non-implicit lod
|
| 33 | texture(s2D, vec2(0.5));
|
| 34 | textureProj(s2D, vec3(0.5));
|
| 35 | textureLod(s2D, vec2(0.5), 3.2);
|
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 36 | }
|
| 37 |
|
| 38 | out float gl_ClipDistance[4];
|