]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/function_inline.glsl
Add a unit test framework and some tests for the GLSL compiler
[libs/gl.git] / tests / glsl / function_inline.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 vec4 func()
4 {
5         return position;
6 }
7 void main()
8 {
9         gl_Position = func();
10 }
11
12 /* Expected output: vertex
13 layout(location=0) in vec4 position;
14 void main()
15 {
16         gl_Position = position;
17 }
18 */