Represents a WebGL2 program.

Constructors

Properties

allocated: boolean

Flag set true when this program has been successfully allocated.

attributes: { [key: string]: WebGLAttribute }

Map of all attributes in this program.

compiled: boolean

Flag set true when this program has been successfully conpiled.

errors: string[]

List of compilation errors for this program, if any.

fragmentShader: WebGLShader

The fragment shader.

handle: any

Handle to the WebGL program itself, which resides on the GPU.

id: number

Unique ID of this program.

linked: boolean

Flag set true when this program has been successfully linked.

samplers: { [key: string]: WebGLUniformLocation }

Map of all samplers in this program.

source: any

The source code from which the shaders are built.

uniforms: { [key: string]: WebGLUniformLocation }

Map of all uniforms in this program.

validated: boolean

Flag set true when program has been validated.

vertexShader: WebGLShader

The vertex shader.

Methods