MCPcopy Create free account
hub / github.com/microsoft/SandDance / normalizeInjections

Function normalizeInjections

docs/app/js/sanddance-app.js:68335–68349  ·  view source on GitHub ↗
(injections)

Source from the content-addressed store, hash-verified

68333 return module;
68334}
68335function normalizeInjections(injections) {
68336 var result = {
68337 vs: {},
68338 fs: {}
68339 };
68340 for(var hook in injections){
68341 var injection = injections[hook];
68342 var stage = hook.slice(0, 2);
68343 if (typeof injection === "string") injection = {
68344 injection: injection
68345 };
68346 result[stage][hook] = injection;
68347 }
68348 return result;
68349}
68350
68351},{"@babel/runtime/helpers/esm/classCallCheck":"3owyr","@babel/runtime/helpers/esm/createClass":"1VLPU","../utils":"lnuIG","./filters/prop-types":"922QG","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"lnuIG":[function(require,module,exports) {
68352var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

ShaderModule1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected