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.
Name | Type | Description |
---|---|---|
program | WebGLProgram |
webgl program |
uniformData | { [key: string]: IGLUniformData } |
uniforms |
Summary
Properties from GLProgram
WebGLProgram |
The shader program. |
Dict<any> |
A hash that stores where UBOs are bound to on the program. |
Dict<any> |
|
Dict<any> |
|
Dict<any> |
|
Dict<any> |
A hash for lazily-generated uniform uploading functions. |
Methods from GLProgram
void |
Destroys this program. |
Public Properties
uniformBufferBindings: Dict
A hash that stores where UBOs are bound to on the program.
uniformData: Dict
Holds the uniform data which contains uniform locations and current uniform values used for caching and preventing unneeded GPU commands.
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: Dict
UniformGroups holds the various upload functions for the shader. Each uniform group and program have a unique upload function generated.
uniformSync: Dict
A hash for lazily-generated uniform uploading functions.