Package org.lwjgl.opengles
Class ANGLETranslatedShaderSource
- java.lang.Object
-
- org.lwjgl.opengles.ANGLETranslatedShaderSource
-
public class ANGLETranslatedShaderSource extends java.lang.Object
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
Fields Modifier and Type Field Description static int
GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE
Accepted by thepname
parameter of GetShaderiv.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
glGetTranslatedShaderSourceANGLE(int shader)
static java.lang.String
glGetTranslatedShaderSourceANGLE(int shader, int bufsize)
static void
glGetTranslatedShaderSourceANGLE(int shader, int[] length, java.nio.ByteBuffer source)
Array version of:GetTranslatedShaderSourceANGLE
static void
glGetTranslatedShaderSourceANGLE(int shader, java.nio.IntBuffer length, java.nio.ByteBuffer source)
static void
nglGetTranslatedShaderSourceANGLE(int shader, int bufsize, long length, long source)
-
-
-
Field Detail
-
GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE
public static final int GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE
Accepted by thepname
parameter of GetShaderiv.- See Also:
- Constant Field Values
-
-
Method Detail
-
nglGetTranslatedShaderSourceANGLE
public static void nglGetTranslatedShaderSourceANGLE(int shader, int bufsize, long length, long source)
-
glGetTranslatedShaderSourceANGLE
public static void glGetTranslatedShaderSourceANGLE(int shader, @Nullable java.nio.IntBuffer length, java.nio.ByteBuffer source)
-
glGetTranslatedShaderSourceANGLE
public static java.lang.String glGetTranslatedShaderSourceANGLE(int shader, int bufsize)
-
glGetTranslatedShaderSourceANGLE
public static java.lang.String glGetTranslatedShaderSourceANGLE(int shader)
-
glGetTranslatedShaderSourceANGLE
public static void glGetTranslatedShaderSourceANGLE(int shader, @Nullable int[] length, java.nio.ByteBuffer source)
Array version of:GetTranslatedShaderSourceANGLE
-
-