]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/unary_operators.glsl
Fix GLSL test cases so they pass the basic tests
[libs/gl.git] / tests / glsl / unary_operators.glsl
1 #pragma MSP stage(vertex)
2 void main()
3 {
4         int i = 0;
5         i = -~i;
6         ++i;
7         --i;
8         i++;
9         i--;
10         bool b = false;
11         b = !b;
12         int arr[3];
13         ++arr[0];
14 }
15
16 // Target API: Vulkan
17
18 /* Expected output: vertex
19 void main()
20 {
21         int i;
22         i = 1;
23         ++i;
24         --i;
25         i++;
26         i--;
27         int arr_0;
28         ++arr_0;
29 }
30 */