Class ANGLETranslatedShaderSource

java.lang.Object
org.lwjgl.opengles.ANGLETranslatedShaderSource

public class ANGLETranslatedShaderSource extends 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 Details

    • GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE

      public static final int GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE
      Accepted by the pname 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

      public static String glGetTranslatedShaderSourceANGLE(int shader, int bufsize)
    • glGetTranslatedShaderSourceANGLE

      public static String glGetTranslatedShaderSourceANGLE(int shader)
    • glGetTranslatedShaderSourceANGLE

      public static void glGetTranslatedShaderSourceANGLE(int shader, @Nullable int[] length, ByteBuffer source)