![]() | ShaderCompile Method |
Namespace: Ooogles
Exception | Condition |
---|---|
GLException | InvalidOperation if a shader compiler is not supported. |
ShaderException | When the source code contains errors and cannot be compiled. |
Note: in DEBUG mode, any compiler warnings will be output to the debug console.
OpenGL API: glCompileShader, glGetShaderInfoLog, glGetShaderiv(GL_COMPILE_STATUS/GL_INFO_LOG_LENGTH)