@@ -126,13 +126,19 @@ var WebGLPipeline = new Class({
126126 this . vertexCapacity = GetFastValue ( config , 'vertexCapacity' , renderer . config . batchSize * 6 ) ;
127127
128128 /**
129- * The size in bytes of a vertex.
129+ * The size, in bytes, of a single vertex.
130130 *
131- * Derived by adding together all of the vertex attributes.
131+ * This is derived by adding together all of the vertex attributes.
132132 *
133- * For example, the Texture Tint Pipeline has 2 + 2 + 1 + 1 + 4 for the attributes
134- * `inPosition` (size 2), `inTexCoord` (size 2), `inTexId` (size 1), `inTintEffect` (size 1)
135- * and `inTint` (size 4), for a total of 28, which is the default for this property.
133+ * For example, the Multi Pipeline has the following attributes:
134+ *
135+ * inPosition - (size 2 x gl.FLOAT) = 8
136+ * inTexCoord - (size 2 x gl.FLOAT) = 8
137+ * inTexId - (size 1 x gl.FLOAT) = 4
138+ * inTintEffect - (size 1 x gl.FLOAT) = 4
139+ * inTint - (size 4 x gl.UNSIGNED_BYTE) = 4
140+ *
141+ * The total is 8 + 8 + 4 + 4 + 4 = 28, which is the default for this property.
136142 *
137143 * @name Phaser.Renderer.WebGL.WebGLPipeline#vertexSize
138144 * @type {integer }
@@ -459,13 +465,16 @@ var WebGLPipeline = new Class({
459465 } ,
460466
461467 /**
462- * Set whenever this WebGL Pipeline is bound to a WebGL Renderer .
468+ * This method is called every time a Game Object asks the Pipeline Manager to use this pipeline .
463469 *
464- * This method is called every time the WebGL Pipeline is attempted to be bound, even if it already is the current pipeline.
470+ * Unlike the `bind` method, which is only called once per frame, this is called for every object
471+ * that requests it, allowing you to perform per-object GL set-up.
465472 *
466473 * @method Phaser.Renderer.WebGL.WebGLPipeline#onBind
467474 * @since 3.0.0
468475 *
476+ * @param {Phaser.GameObjects.GameObject } [gameObject] - The Game Object that invoked this pipeline, if any.
477+ *
469478 * @return {this } This WebGLPipeline instance.
470479 */
471480 onBind : function ( )
0 commit comments