Skip to content

Commit 4549fb4

Browse files
committed
Updated type defs
1 parent f2f3aea commit 4549fb4

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/renderer/webgl/typedefs/WebGLPipelineConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
* @property {number} [vertexSize] - The size, in bytes, of a single entry in the vertex buffer. Defaults to Float32Array.BYTES_PER_ELEMENT * 6 + Uint8Array.BYTES_PER_ELEMENT * 4.
1212
* @property {ArrayBuffer} [vertices] - An optional Array Buffer full of pre-calculated vertices data.
1313
* @property {Phaser.Types.Renderer.WebGL.WebGLPipelineAttributesConfig} [attributes] - An array of shader attribute data.
14+
* @property {string[]} [uniforms] - An array of shader uniform names that will be looked-up to get the locations for.
1415
*/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* @typedef {object} Phaser.Types.Renderer.WebGL.WebGLPipelineUniformsConfig
3+
* @since 3.50.0
4+
*
5+
* @property {string} name - The name of the uniform as defined in the shaders.
6+
* @property {WebGLUniformLocation} location - The pipeline will set it when the program is linked.
7+
*/

0 commit comments

Comments
 (0)