mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
29 lines
352 B
GLSL
29 lines
352 B
GLSL
|
#version 330 core
|
||
|
|
||
|
// cross-unit recursion
|
||
|
|
||
|
// two-level recursion
|
||
|
|
||
|
void cfoo(float);
|
||
|
|
||
|
float cbar(int)
|
||
|
{
|
||
|
cfoo(4.2);
|
||
|
|
||
|
return 3.2;
|
||
|
}
|
||
|
|
||
|
// four-level, out of order
|
||
|
|
||
|
void CA();
|
||
|
void CC();
|
||
|
void CB() { CC(); }
|
||
|
void CD() { CA(); }
|
||
|
|
||
|
// high degree
|
||
|
|
||
|
void CAT();
|
||
|
void CCT();
|
||
|
void CBT() { CCT(); CCT(); CCT(); }
|
||
|
void CDT() { CAT(); }
|