Skip to content

Commit 67b3f81

Browse files
committed
JSDocs
1 parent 4fb0390 commit 67b3f81

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/renderer/webgl/WebGLShader.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ var WEBGL_CONST = require('./const');
1010

1111
/**
1212
* @classdesc
13-
* TODO
13+
* Instances of the WebGLShader class belong to the WebGL Pipeline classes. When the pipeline is
14+
* created it will create an instance of this class for each one of its shaders, as defined in
15+
* the pipeline configuration.
16+
*
17+
* This class encapsulates everything needed to manage a shader in a pipeline, including the
18+
* shader attributes and uniforms, as well as lots of handy methods such as `set2f`, for setting
19+
* uniform values on this shader.
20+
*
21+
* Typically, you do not create an instance of this class directly, as it works in unison with
22+
* the pipeline to which it belongs. You can gain access to this class via a pipeline's `shaders`
23+
* array, post-creation.
1424
*
1525
* @class WebGLShader
1626
* @memberof Phaser.Renderer.WebGL

0 commit comments

Comments
 (0)