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

Method setNode

Source/Falcor/RenderGraph/RenderGraphUI.cpp:686–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684RenderGraphUI::~RenderGraphUI() {}
685
686void RenderGraphUI::NodeGraphEditorGui::setNode(ImGui::Node*& node, ImGui::NodeGraphEditor::NodeState state, ImGui::NodeGraphEditor& editor)
687{
688 RenderGraphNode* pRenderGraphNode = static_cast<RenderGraphNode*>(node);
689 RenderGraphUI::NodeGraphEditorGui* pGraphEditor = static_cast<RenderGraphUI::NodeGraphEditorGui*>(&editor);
690 if (!editor.isInited())
691 {
692 if (state == ImGui::NodeGraphEditor::NodeState::NS_DELETED)
693 {
694 pRenderGraphNode->getFields().clear();
695 pGraphEditor->getRenderGraphUI()->removeRenderPass(node->getName());
696 }
697 }
698 if (state == ImGui::NodeGraphEditor::NodeState::NS_ADDED)
699 {
700 pGraphEditor->getRenderGraphUI()->addRenderPass(node->getName(), pRenderGraphNode->mpRenderPass->getType());
701 }
702}
703
704void RenderPassUI::addUIPin(
705 const std::string& fieldName,

Callers

nothing calls this directly

Calls 6

removeRenderPassMethod · 0.80
getRenderGraphUIMethod · 0.80
addRenderPassMethod · 0.80
clearMethod · 0.45
getNameMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected