13 lines
512 B
JavaScript
13 lines
512 B
JavaScript
shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$batcher$gpu$generateLayout = function(global, require, module, exports) {
|
|
exports.generateLayout = function(maxTextures) {
|
|
const layout = {};
|
|
let bindIndex = 0;
|
|
for (let i = 0; i < maxTextures; i++) {
|
|
layout[`textureSource${i + 1}`] = bindIndex++, layout[`textureSampler${i + 1}`] = bindIndex++;
|
|
}
|
|
return layout;
|
|
};
|
|
};
|
|
|
|
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$batcher$gpu$generateLayout.js.map
|