setValueV2i method

dynamic setValueV2i(
  1. dynamic gl,
  2. dynamic v,
  3. dynamic textures
)

Implementation

setValueV2i(gl, v, textures) {
  var cache = this.cache;

  if (arraysEqual(cache, v)) return;

  gl.uniform2iv(addr, 1, v.toArray());

  copyArray(cache, v.toArray());
}