B2G/gecko/browser/devtools/tilt/TiltGL.jsm
/**
   * Binds a uniform texture for a sampler to the current shader.
   *
   * @param {String} aSampler
   *                 the sampler name to bind the texture to
   * @param {TiltGL.Texture} aTexture
   *                       the texture to be bound
   */
Binds a uniform texture for a sampler to the current shader.
@param {String} aSampler
the sampler name to bind the texture to
@param {TiltGL.Texture} aTexture
the texture to be bound
Binds a uniform texture for a sampler to the current shader . @param { String } aSampler the sampler name to bind the texture to @param { TiltGL . Texture } aTexture the texture to be bound
function TGLP_bindTexture(aSampler, aTexture)
  {
    let gl = this._context;
    gl.activeTexture(gl.TEXTURE0);
    gl.bindTexture(gl.TEXTURE_2D, aTexture._ref);
    gl.uniform1i(this._uniforms[aSampler], 0);
  }
function TGLP_bindTexture ( aSampler , aTexture ) { let gl = this . _context ; gl . activeTexture ( gl . TEXTURE0 ) ; gl . bindTexture ( gl . TEXTURE_2D , aTexture . _ref ) ; gl . uniform1i ( this . _uniforms [ aSampler ] , 0 ) ; }
Binds a uniform texture for a sampler to the current shader.
Binds a uniform texture for a sampler to the current shader .