Top Description Fields Constructors Methods
org.lwjgl.opengles

public Class KHRParallelShaderCompile

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to the KHR_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.

Field Summary

Modifier and TypeField and Description
public static final int
GL_COMPLETION_STATUS_KHR

Accepted as part of the pname parameter to GetShaderiv and accepted as part of the pname parameter to GetProgramiv.

public static final int
GL_MAX_SHADER_COMPILER_THREADS_KHR

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glMaxShaderCompilerThreadsKHR(int
the number of background threads. A count of zero specifies a request for no parallel compiling or linking and a count of 0xFFFFFFFF requests an implementation-specific maximum.
count
)

Applications may use this function 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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_COMPLETION_STATUS_KHRback to summary
public static final int GL_COMPLETION_STATUS_KHR

Accepted as part of the pname parameter to GetShaderiv and accepted as part of the pname parameter to GetProgramiv.

GL_MAX_SHADER_COMPILER_THREADS_KHRback to summary
public static final int GL_MAX_SHADER_COMPILER_THREADS_KHR

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.

Constructor Detail

KHRParallelShaderCompileback to summary
protected KHRParallelShaderCompile()

Method Detail

glMaxShaderCompilerThreadsKHRback to summary
public static native void glMaxShaderCompilerThreadsKHR(int count)

Applications may use this function 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 MaxShaderCompilerThreadsKHR count by calling GetIntegerv with pname set to MAX_SHADER_COMPILER_THREADS_KHR, which returns the value of the current state.

Parameters
count:int

the number of background threads. A count of zero specifies a request for no parallel compiling or linking and a count of 0xFFFFFFFF requests an implementation-specific maximum.