Package org.lwjgl.opengl
Class ARBParallelShaderCompile
java.lang.Object
org.lwjgl.opengl.ARBParallelShaderCompile
Native bindings to the ARB_parallel_shader_compile extension.
Compiling GLSL into implementation-specific code can be a time consuming process, so a GL implementation may wish to perform the compilation in a separate CPU thread. This extension provides a mechanism for the application to provide a hint to limit the number of threads it wants to be used to compile shaders, as well as a query to determine if the compilation process is complete.
Requires OpenGL 3.0.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAccepted as part of thepnameparameter to GetShaderiv() and accepted as part of thepnameparameter to GetProgramiv().static final intAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidglMaxShaderCompilerThreadsARB(int count) Application may use the following to hint to the driver the maximum number background threads it would like to be used in the process of compiling shaders or linking programs.
-
Field Details
-
GL_MAX_SHADER_COMPILER_THREADS_ARB
public static final int GL_MAX_SHADER_COMPILER_THREADS_ARBAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.- See Also:
-
GL_COMPLETION_STATUS_ARB
public static final int GL_COMPLETION_STATUS_ARBAccepted as part of thepnameparameter to GetShaderiv() and accepted as part of thepnameparameter to GetProgramiv().- See Also:
-
-
Method Details
-
glMaxShaderCompilerThreadsARB
public static void glMaxShaderCompilerThreadsARB(int count) Application may use the following to hint to the driver the maximum number background threads it would like to be used in the process of compiling shaders or linking programs.An implementation may combine the maximum compiler thread request from multiple contexts in a share group in an implementation-specific way.
An application can query the current MaxShaderCompilerThreads()
countby callingGetIntegervwithpnameset toMAX_SHADER_COMPILER_THREADS_ARB.- Parameters:
count- the number of background threads. Acountof zero specifies a request for no parallel compiling or linking and acountof0xFFFFFFFFrequests an implementation-specific maximum.
-