createShader method

WebGLShader? createShader(
  1. GLenum type
)

The WebGLRenderingContext method createShader() of the WebGL API creates a WebGLShader that can then be configured further using WebGLRenderingContext.shaderSource and WebGLRenderingContext.compileShader.

Implementation

external WebGLShader? createShader(GLenum type);