shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$shader$program$preprocessors$setProgramName = function(global, require, module, exports) {
  const fragmentNameCache = {}, VertexNameCache = {};
  exports.setProgramName = function(src, {name = "pixi-program"}, isFragment = !0) {
    name = name.replace(/\s+/g, "-");
    name += isFragment ? "-fragment" : "-vertex";
    isFragment = isFragment ? fragmentNameCache : VertexNameCache;
    isFragment[name] ? (isFragment[name]++, name += `-${isFragment[name]}`) : isFragment[name] = 1;
    return -1 !== src.indexOf("#define SHADER_NAME") ? src : `${`#define SHADER_NAME ${name}`}
${src}`;
  };
};

//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$shader$program$preprocessors$setProgramName.js.map
