(config)
| 66652 | var _definePropertyDefault = parcelHelpers.interopDefault(_defineProperty); |
| 66653 | var _attributeUtils = require("../webgl-utils/attribute-utils"); |
| 66654 | function getDebugTableForProgramConfiguration(config) { |
| 66655 | var table = {}; |
| 66656 | var header = "Accessors for ".concat(config.id); |
| 66657 | var _iteratorNormalCompletion = true; |
| 66658 | var _didIteratorError = false; |
| 66659 | var _iteratorError = undefined; |
| 66660 | try { |
| 66661 | for(var _iterator = config.attributeInfos[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ |
| 66662 | var attributeInfo = _step.value; |
| 66663 | if (attributeInfo) { |
| 66664 | var glslDeclaration = getGLSLDeclaration(attributeInfo); |
| 66665 | table["in ".concat(glslDeclaration)] = (0, _definePropertyDefault.default)({}, header, JSON.stringify(attributeInfo.accessor)); |
| 66666 | } |
| 66667 | } |
| 66668 | } catch (err) { |
| 66669 | _didIteratorError = true; |
| 66670 | _iteratorError = err; |
| 66671 | } finally{ |
| 66672 | try { |
| 66673 | if (!_iteratorNormalCompletion && _iterator["return"] != null) _iterator["return"](); |
| 66674 | } finally{ |
| 66675 | if (_didIteratorError) throw _iteratorError; |
| 66676 | } |
| 66677 | } |
| 66678 | var _iteratorNormalCompletion2 = true; |
| 66679 | var _didIteratorError2 = false; |
| 66680 | var _iteratorError2 = undefined; |
| 66681 | try { |
| 66682 | for(var _iterator2 = config.varyingInfos[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){ |
| 66683 | var varyingInfo = _step2.value; |
| 66684 | if (varyingInfo) { |
| 66685 | var _glslDeclaration = getGLSLDeclaration(varyingInfo); |
| 66686 | table["out ".concat(_glslDeclaration)] = (0, _definePropertyDefault.default)({}, header, JSON.stringify(varyingInfo.accessor)); |
| 66687 | } |
| 66688 | } |
| 66689 | } catch (err1) { |
| 66690 | _didIteratorError2 = true; |
| 66691 | _iteratorError2 = err1; |
| 66692 | } finally{ |
| 66693 | try { |
| 66694 | if (!_iteratorNormalCompletion2 && _iterator2["return"] != null) _iterator2["return"](); |
| 66695 | } finally{ |
| 66696 | if (_didIteratorError2) throw _iteratorError2; |
| 66697 | } |
| 66698 | } |
| 66699 | return table; |
| 66700 | } |
| 66701 | function getGLSLDeclaration(attributeInfo) { |
| 66702 | var _attributeInfo$access = attributeInfo.accessor, type = _attributeInfo$access.type, size = _attributeInfo$access.size; |
| 66703 | var typeAndName = (0, _attributeUtils.getCompositeGLType)(type, size); |
nothing calls this directly
no test coverage detected