Added JSDocs

This commit is contained in:
Richard Davey 2020-11-04 18:01:20 +00:00
parent 305106bebe
commit d6496c86cf

View file

@ -340,6 +340,16 @@ var WebGLShader = new Class({
return this;
},
/**
* Checks to see if the given uniform name exists and is active in this shader.
*
* @method Phaser.Renderer.WebGL.WebGLShader#hasUniform
* @since 3.50.0
*
* @param {string} name - The name of the uniform to check for.
*
* @return {boolean} `true` if the uniform exists, otherwise `false`.
*/
hasUniform: function (name)
{
return this.uniforms.hasOwnProperty(name);