]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/inexact_function_argument_type.glsl
Fold type conversions of constants
[libs/gl.git] / tests / glsl / inexact_function_argument_type.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 vec2 scale(vec2 v, float s)
4 {
5         return v*s;
6 }
7 void main()
8 {
9         gl_Position = vec4(scale(position.xy, 2), 0.0, 1.0);
10 }
11
12 /* Expected output: vertex
13 layout(location=0) in vec4 position;
14 void main()
15 {
16         gl_Position = vec4(position.xy*2.0, 0.0, 1.0);
17 }
18 */