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

Method addAndInitNode

Source/Falcor/RenderGraph/RenderGraphUI.cpp:391–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389};
390
391ImGui::Node* RenderGraphUI::NodeGraphEditorGui::addAndInitNode(
392 int nodeType,
393 const std::string& name,
394 const std::string& outputsString,
395 const std::string& inputsString,
396 uint32_t guiNodeID,
397 RenderPass* pCurrentRenderPass,
398 const ImVec2& pos
399)
400{
401 // set init data for new node to obtain
402 RenderGraphNode* newNode = static_cast<RenderGraphNode*>(addNode(nodeType, pos, nullptr));
403 newNode->initialize(name, outputsString, inputsString, guiNodeID, pCurrentRenderPass);
404 return newNode;
405}
406
407void RenderGraphUI::NodeGraphEditorGui::setLinkFromGui(
408 ImGui::NodeLink& link,

Callers 1

renderUIMethod · 0.80

Calls 2

addNodeFunction · 0.85
initializeMethod · 0.45

Tested by

no test coverage detected