setValueT2DArray1 method

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

Implementation

setValueT2DArray1(gl, v, textures) {
  var cache = this.cache;
  var unit = textures.allocateTextureUnit();

  if (cache[0] != unit) {
    gl.uniform1i(addr, unit);
    cache[0] = unit;
  }

  textures.setTexture2DArray(v ?? emptyArrayTexture, unit);
}