]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/nested_function_inline.glsl
Check the flat qualifier from the correct member
[libs/gl.git] / tests / glsl / nested_function_inline.glsl
1 layout(push_constant) uniform Transform
2 {
3         mat4 mvp;
4 };
5
6 #pragma MSP stage(vertex)
7 layout(location=0) in vec4 position;
8 vec4 get_position()
9 {
10         return position;
11 }
12 vec4 transform_position(vec4 pos)
13 {
14         return mvp*pos;
15 }
16 void main()
17 {
18         gl_Position = transform_position(get_position());
19 }
20
21 // Target API: Vulkan
22
23 /* Expected output: vertex
24 layout(push_constant) uniform Transform
25 {
26         mat4 mvp;
27 };
28 layout(location=0) in vec4 position;
29 void main()
30 {
31         gl_Position = mvp*position;
32 }
33 */