Note: This feature is available in Web Workers.
The WebGLRenderingContext.getShaderParameter() method of the WebGL API returns information about the given shader.
getShaderParameter(shader, pname)shaderA WebGLShader to get parameter information from.
pnameA GLenum specifying the information to query. Possible values:
gl.DELETE_STATUSReturns a GLboolean indicating whether or not the shader is flagged for deletion.
gl.COMPILE_STATUSReturns a GLboolean indicating whether or not the last shader compilation was successful.
gl.SHADER_TYPEReturns a GLenum indicating whether the shader is a vertex shader (gl.VERTEX_SHADER) or fragment shader (gl.FRAGMENT_SHADER) object.
Returns the requested shader information (as specified with pname).
gl.getShaderParameter(shader, gl.SHADER_TYPE);