Class ARBShaderSubroutine



  • public class ARBShaderSubroutine
    extends java.lang.Object
    Native bindings to the ARB_shader_subroutine extension.

    This extension adds support to shaders for "indirect subroutine calls", where a single shader can include many subroutines and dynamically select through the API which subroutine is called from each call site. Switching subroutines dynamically in this fashion can avoid the cost of recompiling and managing multiple shaders, while still retaining most of the performance of specialized shaders.

    Requires ARB_gpu_shader5. Promoted to core in OpenGL 4.0.