Create a shader.
The rendering context.
The type.
Optional
source: stringThe source code of the shader. If supplied, the shader will automatically be compiled.
UnsupportedOperationError if a shader cannot be created.
ShaderCompileError if the shader fails to compile.
The compilation status of this shader.
A WebGL2 shader.
See
WebGLShader