]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/function_override.glsl
Offset layout qualifiers are only allowed on uniform block members
[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 int main()
8 {
9         gl_Position = position*get_scale();
10 }
11 float get_scale() override
12 {
13         return 2.0;
14 }
15
16 /* Expected output: vertex
17 layout(location=0) in vec4 position;
18 int main()
19 {
20         gl_Position = position*2.0;
21 }
22 */