]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/multiple_function_inline.glsl
Fix layout processing for old GLSL versions
[libs/gl.git] / tests / glsl / multiple_function_inline.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 layout(location=1) in float scale;
4 vec4 get_position()
5 {
6         return position;
7 }
8 float get_scale()
9 {
10         return scale;
11 }
12 void main()
13 {
14         gl_Position = get_position()*get_scale();
15 }
16
17 /* Expected output: vertex
18 layout(location=0) in vec4 position;
19 layout(location=1) in float scale;
20 void main()
21 {
22         gl_Position = position*scale;
23 }
24 */