
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23309 e7fa87d3-cd2b-0410-9028-fcbf551c1848
29 lines
366 B
GLSL
29 lines
366 B
GLSL
#version 330 core
|
|
|
|
// cross-unit recursion
|
|
|
|
void main() {}
|
|
|
|
// two-level recursion
|
|
|
|
float cbar(int);
|
|
|
|
void cfoo(float)
|
|
{
|
|
cbar(2);
|
|
}
|
|
|
|
// four-level, out of order
|
|
|
|
void CB();
|
|
void CD();
|
|
void CA() { CB(); }
|
|
void CC() { CD(); }
|
|
|
|
// high degree
|
|
|
|
void CBT();
|
|
void CDT();
|
|
void CAT() { CBT(); CBT(); CBT(); }
|
|
void CCT() { CDT(); CDT(); CBT(); }
|