MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / addOutput

Method addOutput

Source/Falcor/RenderGraph/RenderGraphUI.cpp:473–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473void RenderGraphUI::addOutput(const std::string& outputParam)
474{
475 size_t offset = outputParam.find('.');
476 std::string outputPass = outputParam.substr(0, offset);
477 std::string outputField = outputParam.substr(offset + 1, outputParam.size());
478
479 const auto passUIIt = mRenderPassUI.find(outputPass);
480 if (passUIIt == mRenderPassUI.end())
481 {
482 msgBox("Error", "Error setting graph output. Can't find node name.");
483 return;
484 }
485 auto& passUI = passUIIt->second;
486 const auto outputIt = passUI.mNameToIndexOutput.find(outputField);
487 if (outputIt == passUI.mNameToIndexOutput.end())
488 {
489 msgBox("Error", "Error setting graph output. Can't find output name.");
490 return;
491 }
492 passUI.mOutputPins[outputIt->second].mIsGraphOutput = true;
493 mpIr->markOutput(outputParam);
494 mRebuildDisplayData = true;
495 mShouldUpdate = true;
496}
497
498void RenderGraphUI::addOutput(const std::string& outputPass, const std::string& outputField)
499{

Callers 15

reflectMethod · 0.80
reflectMethod · 0.80
reflectMethod · 0.80
reflectMethod · 0.80
reflectMethod · 0.80
reflectMethod · 0.80
reflectMethod · 0.80
reflectMethod · 0.80
reflectMethod · 0.80
reflectMethod · 0.80
reflectMethod · 0.80
reflectMethod · 0.80

Calls 4

msgBoxFunction · 0.50
sizeMethod · 0.45
endMethod · 0.45
markOutputMethod · 0.45

Tested by 1

reflectMethod · 0.64