GLCOMPILESHADER(3G)

    .SH "NAME" glCompileShader - Compiles a shader object
    .SH "C SPECIFICATION"

        .HP u void glCompileShader(GLuint shader);

    .SH "PARAMETERS"

        .PP shader

                Specifies the shader object to be compiled.

            .RE

        .SH "DESCRIPTION"
        .PP glCompileShader compiles the source code strings that have been stored in the shader object specified by shader.
        .PP The compilation status will be stored as part of the shader object's state. This value will be set to GL_TRUE if the shader was compiled without errors and is ready for use, and GL_FALSE otherwise. It can be queried by calling glGetShader() with arguments shader and GL_COMPILE_STATUS.
        .PP Compilation of a shader can fail for a number of reasons as specified by the OpenGL Shading Language Specification. Whether or not the compilation was successful, information about the compilation can be obtained from the shader object's information log by calling glGetShaderInfoLog().

        .SH "ERRORS"
        .PP GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL.
        .PP GL_INVALID_OPERATION is generated if shader is not a shader object.

        .SH "ASSOCIATED GETS"
        .PP glGetShaderInfoLog() with argument shader
        .PP glGetShader() with arguments shader and GL_COMPILE_STATUS
        .PP glIsShader()

        .SH "VERSION SUPPORT"
            .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ OpenGL Version T} T{ Function / Feature Name T}:T{ 2.0 T}:T{ 2.1 T}:T{ 3.0 T}:T{ 3.1 T}:T{ 3.2 T}:T{ 3.3 T}:T{ 4.0 T}:T{ 4.1 T}:T{ 4.2 T}:T{ 4.3 T}:T{ 4.4 T}:T{ 4.5 T} l c c c c c c c c c c c c. T{ glCompileShader T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}

        .SH "SEE ALSO"
        .PP glCreateShader(), glLinkProgram(), glShaderSource()

        .SH "COPYRIGHT"
            .PP Copyright © 2003-2005 3Dlabs Inc. Ltd. Copyright © 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. https://opencontent.org/openpub/.

COPYRIGHT
Copyright © 2003-2005 3Dlabs Inc. Ltd.
Copyright © 2010-2014 Khronos Group