4 // require_extensions: GL_ARB_shader_subroutine
8 #extension GL_ARB_shader_subroutine: require
10 subroutine void func_type();
12 /* A subroutine matching the above type */
13 subroutine (func_type) void impl() {}
15 /* An array of subroutine uniforms matching the above */
16 subroutine uniform func_type f[4];
18 /* Elements of an array of subroutine uniforms are callable
19 * as if they were any other function