]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/expression_inline_precedence.glsl
Fix some errors in test cases
[libs/gl.git] / tests / glsl / expression_inline_precedence.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 layout(location=1) in vec4 v;
4 void main()
5 {
6         float a = v.x-v.y;
7         float b = v.z-v.w;
8         float c = v.x-v.y;
9         float d = v.z-v.w;
10         float e = a-b;
11         float f = c*d;
12         gl_Position = position*(e+f);
13 }
14
15 /* Expected output: vertex
16 layout(location=0) in vec4 position;
17 layout(location=1) in vec4 v;
18 void main()
19 {
20         gl_Position = position*((v.x-v.y-(v.z-v.w))+(v.x-v.y)*(v.z-v.w));
21 }
22 */