]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/array_element_assignment.glsl
Check the flat qualifier from the correct member
[libs/gl.git] / tests / glsl / array_element_assignment.glsl
1 #pragma MSP stage(vertex)
2 void main()
3 {
4         float a[3];
5         a[0] = 0.0;
6         a[1] = 1.0;
7         a[2] = 2.0;
8         float s = 0.0;
9         for(int i=0; i<3; ++i)
10                 s += a[i];
11         gl_Position = vec4(s);
12 }
13
14 // Target API: Vulkan
15
16 /* Expected output: vertex
17 void main()
18 {
19         float a[3];
20         a[0] = 0.0;
21         a[1] = 1.0;
22         a[2] = 2.0;
23         float s = 0.0;
24         for(int i = 0; i<3; ++i)
25                 s += a[i];
26         gl_Position = vec4(s);
27 }
28 */