4 // require_extensions: GL_ARB_shader_subroutine
9 #extension GL_ARB_shader_subroutine: require
11 subroutine void func_type();
13 /* A program will fail to link if any shader contains two or more
14 * functions with the same name, at least one of which is associated
15 * with a subroutine type.
18 subroutine (func_type) void f() {}