setValueT2DArrayArray method

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

Implementation

setValueT2DArrayArray(gl, v, textures) {
  var n = v.length;

  var units = allocTexUnits(textures, n);

  gl.uniform1iv(addr, units);

  for (var i = 0; i != n; ++i) {
    textures.setTexture2DArray(v[i] ?? emptyArrayTexture, units[i]);
  }
}