Package org.lwjgl.opengles
Class ANGLETranslatedShaderSource
java.lang.Object
org.lwjgl.opengles.ANGLETranslatedShaderSource
Native bindings to the ANGLE_translated_shader_source extension.
WebGL uses the GLSL ES 2.0 spec on all platforms, and translates these shaders to the host platform's native language (HLSL, GLSL, and even GLSL ES). For debugging purposes, it is useful to be able to examine the shader after translation.
This extension addes a new function to query the translated shader source, and adds a new enum for GetShaderiv's <pname> parameter to query the translated shader source length.
Requires GLES 2.0
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Accepted by thepname
parameter of GetShaderiv. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
glGetTranslatedShaderSourceANGLE
(int shader) static String
glGetTranslatedShaderSourceANGLE
(int shader, int bufsize) static void
glGetTranslatedShaderSourceANGLE
(int shader, int[] length, ByteBuffer source) Array version of:GetTranslatedShaderSourceANGLE
static void
glGetTranslatedShaderSourceANGLE
(int shader, IntBuffer length, ByteBuffer source) static void
nglGetTranslatedShaderSourceANGLE
(int shader, int bufsize, long length, long source)
-
Field Details
-
GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE
public static final int GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLEAccepted by thepname
parameter of GetShaderiv.- See Also:
-
-
Method Details
-
nglGetTranslatedShaderSourceANGLE
public static void nglGetTranslatedShaderSourceANGLE(int shader, int bufsize, long length, long source) -
glGetTranslatedShaderSourceANGLE
public static void glGetTranslatedShaderSourceANGLE(int shader, @Nullable IntBuffer length, ByteBuffer source) -
glGetTranslatedShaderSourceANGLE
-
glGetTranslatedShaderSourceANGLE
-
glGetTranslatedShaderSourceANGLE
public static void glGetTranslatedShaderSourceANGLE(int shader, @Nullable int[] length, ByteBuffer source) Array version of:GetTranslatedShaderSourceANGLE
-