Create a shader.
The rendering context.
The type.
The source code.
UnsupportedOperationError if a shader cannot be created.
ShaderCompileError if the shader fails to compile.
Readonly
contextThe rendering context.
Readonly
sourceThe source code of this shader.
Readonly
typeThe type of this shader.
The compilation status of this shader.
The information log of this shader.
A WebGL2 shader.
See
WebGLShader