]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/redeclare_builtin.glsl
Don't try to access parameters with a pointer access instructior
[libs/gl.git] / tests / glsl / redeclare_builtin.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 out float gl_ClipDistance[1];
4 void main()
5 {
6         gl_ClipDistance[0] = dot(position.xyz, vec3(0.0, 0.0, 1.0));
7         gl_Position = position;
8 }
9
10 /* Expected output: vertex
11 out gl_PerVertex
12 {
13         vec4 gl_Position;
14         float gl_PointSize;
15         float gl_ClipDistance[1];
16 };
17 layout(location=0) in vec4 position;
18 void main()
19 {
20         gl_ClipDistance[0] = dot(position.xyz, vec3(0.0, 0.0, 1.0));
21         gl_Position = position;
22 }
23 */