sdfsdfs
This commit is contained in:
16
node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileHooks.js
generated
vendored
Normal file
16
node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileHooks.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
"use strict";
|
||||
const findHooksRx = /\{\{(.*?)\}\}/g;
|
||||
function compileHooks(programSrc) {
|
||||
const parts = {};
|
||||
const partMatches = programSrc.match(findHooksRx)?.map((hook) => hook.replace(/[{()}]/g, "")) ?? [];
|
||||
partMatches.forEach((hook) => {
|
||||
parts[hook] = [];
|
||||
});
|
||||
return parts;
|
||||
}
|
||||
|
||||
exports.compileHooks = compileHooks;
|
||||
exports.findHooksRx = findHooksRx;
|
||||
//# sourceMappingURL=compileHooks.js.map
|
Reference in New Issue
Block a user