ebiten/internal/shader/testdata/issue1701.expected.vs
Hajime Hoshi 853c1f2b92 internal/shaderir/glsl: Bug fix: Remove uncalled functions
Some built-in functions like dFdx is not available in a vertex shader,
then a function that calls such built-in function should not be in
a vertex shader.

Closes #1701
2021-07-09 20:22:40 +09:00

30 lines
254 B
GLSL

attribute vec2 A0;
void F0(void);
void F1(void);
void F2(void);
void F3(void);
void F0(void) {
F1();
F2();
}
void F1(void) {
F2();
F3();
}
void F2(void) {
}
void F3(void) {
F2();
}
void main(void) {
F0();
gl_Position = vec4(0.0);
return;
}