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..
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_COMPLETION_STATUS_ARB
Accepted as part of the |
| public static final int | GL_MAX_SHADER_COMPILER_THREADS_ARB
Accepted by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static native void | glMaxShaderCompilerThreadsARB(int
the number of background threads. A count)count of zero specifies a request for no parallel compiling or linking and a count of
0xFFFFFFFF requests an implementation-specific maximum.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. |
| GL_COMPLETION_STATUS_ARB | back to summary |
|---|---|
| public static final int GL_COMPLETION_STATUS_ARB Accepted as part of the | |
| GL_MAX_SHADER_COMPILER_THREADS_ARB | back to summary |
|---|---|
| public static final int GL_MAX_SHADER_COMPILER_THREADS_ARB Accepted by the | |
| ARBParallelShaderCompile | back to summary |
|---|---|
| protected ARBParallelShaderCompile() | |
| glMaxShaderCompilerThreadsARB | back to summary |
|---|---|
| public static native 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()
| |