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

Function ShaderModulePass

docs/tests/v2/es6/js/sanddance.js:33415–33429  ·  view source on GitHub ↗
(gl, module)

Source from the content-addressed store, hash-verified

33413 (0, _inherits2.default)(ShaderModulePass, _CompositePass);
33414
33415 function ShaderModulePass(gl, module) {
33416 var _this;
33417
33418 var props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
33419 (0, _classCallCheck2.default)(this, ShaderModulePass);
33420 var id = "".concat(module.name, "-pass");
33421 (0, _normalizeModule.normalizeShaderModule)(module);
33422 var passes = normalizePasses(gl, module, id, props);
33423 _this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(ShaderModulePass).call(this, gl, Object.assign({
33424 id: id,
33425 passes: passes
33426 }, props)));
33427 _this.module = module;
33428 return _this;
33429 }
33430
33431 (0, _createClass2.default)(ShaderModulePass, [{
33432 key: "_renderPass",

Callers

nothing calls this directly

Calls 1

normalizePassesFunction · 0.85

Tested by

no test coverage detected