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 /* A subroutine uniform for the above type */
16 subroutine uniform func_type f;
18 /* Subroutines are called via the uniform as
19 * if they were any other function