code: function setTextureParameters(gl, tex, options) {
    const target = options.target || gl.TEXTURE_2D;
    gl.bindTexture(target, tex);
    setTextureSamplerParameters(gl, target, gl.texParameteri, options);
  }
docs: Sets the texture parameters of a texture.
  @param {WebGLRenderingContext} gl the WebGLRenderingContext
  @param {WebGLTexture} tex the WebGLTexture to set parameters for
  @param {module:twgl.TextureOptions} options A TextureOptions object with whatever parameters you want set.
  This is often the same options you passed in when you created the texture.
  @memberOf module:twgl/textures