mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-11 04:43:36 +00:00
2ecdd14288
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23309 e7fa87d3-cd2b-0410-9028-fcbf551c1848
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(); }
|