]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/complex_loop_increment.glsl
Move the utility functions in export_material into MaterialExporter
[libs/gl.git] / tests / glsl / complex_loop_increment.glsl
1 #pragma MSP stage(vertex)
2 void main()
3 {
4         int n = 0;
5         for(int i=10; i!=1; )
6         {
7                 if((i&1)==0)
8                         i /= 2;
9                 else
10                         i = 3*i+1;
11                 ++n;
12         }
13         gl_Position = vec4(n);
14 }
15
16 /* Expected output: vertex
17 void main()
18 {
19         int n = 0;
20         for(int i = 10; i!=1;)
21         {
22                 if((i&1)==0)
23                         i /= 2;
24                 else
25                         i = 3*i+1;
26                 ++n;
27         }
28         gl_Position = vec4(0.0);
29 }
30 */