shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$batcher$gl$utils$maxRecommendedTextures = function(global, require, module, exports) {
  var getTestContext = require("module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$shader$program$getTestContext"), checkMaxIfStatementsInShader = require("module$node_modules$pixi_DOT_js$lib$rendering$batcher$gl$utils$checkMaxIfStatementsInShader");
  "use strict";
  let maxTexturesPerBatchCache = null;
  exports.getMaxTexturesPerBatch = function() {
    if (maxTexturesPerBatchCache) {
      return maxTexturesPerBatchCache;
    }
    const gl = getTestContext.getTestContext();
    maxTexturesPerBatchCache = gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS);
    maxTexturesPerBatchCache = checkMaxIfStatementsInShader.checkMaxIfStatementsInShader(maxTexturesPerBatchCache, gl);
    gl.getExtension("WEBGL_lose_context")?.loseContext();
    return maxTexturesPerBatchCache;
  };
};

//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$batcher$gl$utils$maxRecommendedTextures.js.map
