PIXI.GLProgram

class GLProgram

Helper class to create a WebGL Program

Constructor


new PIXI.GLProgram(program: WebGLProgram, uniformData: { [key: string]: IGLUniformData }) → {}

Makes a new Pixi program.

Parameters:
Name Type Description
program WebGLProgram

webgl program

uniformData { [key: string]: IGLUniformData }

uniforms

Summary


Properties from GLProgram

WebGLProgram
program

The shader program.

Dict<any>
uniformBufferBindings

A hash that stores where UBOs are bound to on the program.

Dict<any>
uniformData
Dict<any>
uniformDirtyGroups
Dict<any>
uniformGroups
Dict<any>
uniformSync

A hash for lazily-generated uniform uploading functions.

Methods from GLProgram

void
destroy()

Destroys this program.

Public Properties


program GLProgram.ts:18
program: WebGLProgram

The shader program.

uniformBufferBindings GLProgram.ts:33
uniformBufferBindings: Dict

A hash that stores where UBOs are bound to on the program.

uniformData GLProgram.ts:21
uniformData: Dict

Holds the uniform data which contains uniform locations and current uniform values used for caching and preventing unneeded GPU commands.

uniformDirtyGroups GLProgram.ts:39
uniformDirtyGroups: Dict

A place where dirty ticks are stored for groups If a tick here does not match with the Higher level Programs tick, it means we should re upload the data.

uniformGroups GLProgram.ts:27
uniformGroups: Dict

UniformGroups holds the various upload functions for the shader. Each uniform group and program have a unique upload function generated.

uniformSync GLProgram.ts:36
uniformSync: Dict

A hash for lazily-generated uniform uploading functions.

Public Methods


destroy GLProgram.ts:60
destroy() → {void}

Destroys this program.

Returns:
Type Description
void

Powered by webdoc!