setValueT2DArrayArray method

void setValueT2DArrayArray(
  1. RenderingContext gl,
  2. dynamic v, [
  3. WebGLTextures? textures
])

Implementation

void setValueT2DArrayArray(RenderingContext gl, v, [WebGLTextures? textures]) {
  final n = v.length;

  final units = allocTexUnits(textures, n);

  gl.uniform1iv(addr, units);

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