| 684 | RenderGraphUI::~RenderGraphUI() {} |
| 685 | |
| 686 | void 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 | |
| 704 | void RenderPassUI::addUIPin( |
| 705 | const std::string& fieldName, |
nothing calls this directly
no test coverage detected