]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/function_override.glsl
Check the flat qualifier from the correct member
[libs/gl.git] / tests / glsl / function_override.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 virtual float get_scale()
4 {
5         return 1.0;
6 }
7 void main()
8 {
9         gl_Position = position*get_scale();
10 }
11 float get_scale() override
12 {
13         return 2.0;
14 }
15
16 // Target API: Vulkan
17
18 /* Expected output: vertex
19 layout(location=0) in vec4 position;
20 void main()
21 {
22         gl_Position = position*2.0;
23 }
24 */