glCompileShader â Compiles a shader object
C Specificationvoid glCompileShader(
GLuint shader)
;
Â
Parametersshader
Specifies the shader object to be compiled.
glCompileShader
compiles the source code strings that have been stored in the shader object specified by shader
.
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 glGetShaderiv with arguments shader
and GL_COMPILE_STATUS
.
Compilation of a shader can fail for a number of reasons as specified by the OpenGL ES 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.
ErrorsGL_INVALID_VALUE
is generated if shader
is not a value generated by OpenGL.
GL_INVALID_OPERATION
is generated if shader
is not a shader object.
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/.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4