Files
il/resources/public/js/cljs-runtime/module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$shader$getBatchSamplersUniformGroup.js
2026-07-01 22:38:29 -06:00

19 lines
1.0 KiB
JavaScript

shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$shader$getBatchSamplersUniformGroup = function(global, require, module, exports) {
var UniformGroup = require("module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$shader$UniformGroup");
"use strict";
const batchSamplersUniformGroupHash = {};
exports.getBatchSamplersUniformGroup = function(maxTextures) {
var batchSamplersUniformGroup = batchSamplersUniformGroupHash[maxTextures];
if (batchSamplersUniformGroup) {
return batchSamplersUniformGroup;
}
batchSamplersUniformGroup = new Int32Array(maxTextures);
for (let i = 0; i < maxTextures; i++) {
batchSamplersUniformGroup[i] = i;
}
return batchSamplersUniformGroup = batchSamplersUniformGroupHash[maxTextures] = new UniformGroup.UniformGroup({uTextures:{value:batchSamplersUniformGroup, type:"i32", size:maxTextures}}, {isStatic:!0});
};
};
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$shader$getBatchSamplersUniformGroup.js.map