setValueT2DArray1 method
dynamic
setValueT2DArray1(
- dynamic gl,
- dynamic v,
- 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);
}