4 // require_extensions: GL_ARB_shader_subroutine
9 #extension GL_ARB_shader_subroutine: require
11 /* Simple recursion via a subroutine */
13 subroutine void func_type(int x);
15 subroutine uniform func_type func;
17 subroutine (func_type) void impl(int x) {
18 if (x > 0) func(x - 1);