(_ref)
| 68157 | }); |
| 68158 | } |
| 68159 | function getDependencyGraph(_ref) { |
| 68160 | var modules = _ref.modules, level = _ref.level, moduleMap = _ref.moduleMap, moduleDepth = _ref.moduleDepth; |
| 68161 | if (level >= 5) throw new Error("Possible loop in shader dependency graph"); |
| 68162 | var _iteratorNormalCompletion = true; |
| 68163 | var _didIteratorError = false; |
| 68164 | var _iteratorError = undefined; |
| 68165 | try { |
| 68166 | for(var _iterator = modules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ |
| 68167 | var module = _step.value; |
| 68168 | moduleMap[module.name] = module; |
| 68169 | if (moduleDepth[module.name] === undefined || moduleDepth[module.name] < level) moduleDepth[module.name] = level; |
| 68170 | } |
| 68171 | } catch (err) { |
| 68172 | _didIteratorError = true; |
| 68173 | _iteratorError = err; |
| 68174 | } finally{ |
| 68175 | try { |
| 68176 | if (!_iteratorNormalCompletion && _iterator["return"] != null) _iterator["return"](); |
| 68177 | } finally{ |
| 68178 | if (_didIteratorError) throw _iteratorError; |
| 68179 | } |
| 68180 | } |
| 68181 | var _iteratorNormalCompletion2 = true; |
| 68182 | var _didIteratorError2 = false; |
| 68183 | var _iteratorError2 = undefined; |
| 68184 | try { |
| 68185 | for(var _iterator2 = modules[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){ |
| 68186 | var _module = _step2.value; |
| 68187 | if (_module.dependencies) getDependencyGraph({ |
| 68188 | modules: _module.dependencies, |
| 68189 | level: level + 1, |
| 68190 | moduleMap: moduleMap, |
| 68191 | moduleDepth: moduleDepth |
| 68192 | }); |
| 68193 | } |
| 68194 | } catch (err1) { |
| 68195 | _didIteratorError2 = true; |
| 68196 | _iteratorError2 = err1; |
| 68197 | } finally{ |
| 68198 | try { |
| 68199 | if (!_iteratorNormalCompletion2 && _iterator2["return"] != null) _iterator2["return"](); |
| 68200 | } finally{ |
| 68201 | if (_didIteratorError2) throw _iteratorError2; |
| 68202 | } |
| 68203 | } |
| 68204 | } |
| 68205 | function instantiateModules(modules, seen) { |
| 68206 | return modules.map(function(module) { |
| 68207 | if (module instanceof (0, _shaderModuleDefault.default)) return module; |
no outgoing calls
no test coverage detected