GL_APICALL void GL_APIENTRY glGetShaderiv(
GLuint shader,
GLenum pname,
GLint * params
);
| Name | Description | |
|---|---|---|
| in | shader | Shader object |
| in | pname | Name of the parameter to get |
| out | params | Region storing the obtained parameters |
Gets shader object parameters.
Set shader to a shader object.
Set pname to one of the following values.
| GL_SHADER_TYPE | Gets the shader type. |
|---|---|
| GL_DELETE_STATUS | Gets GL_TRUE if the shader object is waiting to be deleted and GL_FALSE otherwise. A shader object that is attached to at least one program object begins "waiting to be deleted" when glDeleteShader is called to delete it. |
| GL_COMPILE_STATUS | Always gets GL_FALSE. |
| GL_INFO_LOG_LENGTH | Always gets a value of 0. |
| GL_SHADER_SOURCE_LENGTH | Always gets a value of 0. |
This function generates the following errors.
| GL_INVALID_ENUM | The pname argument was set to an invalid value. |
|---|---|
| GL_INVALID_VALUE | The shader argument was set to an invalid value. |
CONFIDENTIAL