sdfsdfs
This commit is contained in:
20
node_modules/pixi.js/lib/rendering/batcher/gl/utils/maxRecommendedTextures.mjs
generated
vendored
Normal file
20
node_modules/pixi.js/lib/rendering/batcher/gl/utils/maxRecommendedTextures.mjs
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { getTestContext } from '../../../renderers/gl/shader/program/getTestContext.mjs';
|
||||
import { checkMaxIfStatementsInShader } from './checkMaxIfStatementsInShader.mjs';
|
||||
|
||||
"use strict";
|
||||
let maxTexturesPerBatchCache = null;
|
||||
function getMaxTexturesPerBatch() {
|
||||
if (maxTexturesPerBatchCache)
|
||||
return maxTexturesPerBatchCache;
|
||||
const gl = getTestContext();
|
||||
maxTexturesPerBatchCache = gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS);
|
||||
maxTexturesPerBatchCache = checkMaxIfStatementsInShader(
|
||||
maxTexturesPerBatchCache,
|
||||
gl
|
||||
);
|
||||
gl.getExtension("WEBGL_lose_context")?.loseContext();
|
||||
return maxTexturesPerBatchCache;
|
||||
}
|
||||
|
||||
export { getMaxTexturesPerBatch };
|
||||
//# sourceMappingURL=maxRecommendedTextures.mjs.map
|
Reference in New Issue
Block a user