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

Method addUIPin

Source/Falcor/RenderGraph/RenderGraphUI.cpp:704–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704void RenderPassUI::addUIPin(
705 const std::string& fieldName,
706 uint32_t guiPinID,
707 bool isInput,
708 const std::string& connectedPinName,
709 const std::string& connectedNodeName,
710 bool isGraphOutput
711)
712{
713 auto& pinsRef = isInput ? mInputPins : mOutputPins;
714 auto& nameToIndexMapRef = isInput ? mNameToIndexInput : mNameToIndexOutput;
715
716 if (pinsRef.size() <= guiPinID)
717 {
718 pinsRef.resize(guiPinID + 1);
719 }
720
721 PinUI& pinUIData = pinsRef[guiPinID];
722 pinUIData.mPinName = fieldName;
723 pinUIData.mGuiPinID = guiPinID;
724 pinUIData.mConnectedPinName = connectedPinName;
725 pinUIData.mConnectedNodeName = connectedNodeName;
726 pinUIData.mIsGraphOutput = isGraphOutput;
727
728 nameToIndexMapRef.insert(std::make_pair(pinUIData.mPinName, static_cast<uint32_t>(guiPinID)));
729}
730
731void RenderPassUI::renderPinUI(const std::string& passName, RenderGraphUI* pGraphUI, uint32_t index, bool input)
732{

Callers 1

updateDisplayDataMethod · 0.80

Calls 3

sizeMethod · 0.45
resizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected