Class 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 Detail

      • 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:
        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)