blob: 382e3c9bf86ae3cdac63e2be6530a636fbd50d5f [file] [log] [blame]
John Kessenich39374da2015-05-15 21:32:46 +00001#version 150 core
2
3in vec4 iv4;
4
John Kessenich6c292d32016-02-15 20:58:50 -07005in float ps;
6in int ui;
John Kessenich019f08f2016-02-15 15:40:42 -07007uniform sampler2D s2D;
John Kessenich39374da2015-05-15 21:32:46 +00008
9invariant gl_Position;
10
11struct s1 {
12 int a;
13 int a2;
14 vec4 b[3];
15};
16
17struct s2 {
18 int c;
19 s1 d[4];
20};
21
22out s2 s2out;
23
24void 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 Kessenich019f08f2016-02-15 15:40:42 -070031
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 Kessenich39374da2015-05-15 21:32:46 +000036}
37
38out float gl_ClipDistance[4];