| 844 | } |
| 845 | |
| 846 | void RenderPassUI::PinUI::renderUI(const RenderPassReflection::Field& field, RenderGraphUI* pGraphUI, const std::string& passName) |
| 847 | { |
| 848 | ImGui::TextUnformatted(mIsGraphOutput ? "Graph Output : " : ""); |
| 849 | renderFieldInfo(field, pGraphUI, passName, mPinName); |
| 850 | bool isExecutionPin = mPinName[0] == '#'; |
| 851 | |
| 852 | if (!isExecutionPin && is_set(field.getVisibility(), RenderPassReflection::Field::Visibility::Output)) |
| 853 | { |
| 854 | bool isGraphOut = mIsGraphOutput; |
| 855 | if (ImGui::Checkbox("Graph Output", &mIsGraphOutput)) |
| 856 | { |
| 857 | if (isGraphOut && !mIsGraphOutput) |
| 858 | { |
| 859 | pGraphUI->removeOutput(passName, mPinName); |
| 860 | } |
| 861 | else if (!isGraphOut && mIsGraphOutput) |
| 862 | { |
| 863 | pGraphUI->addOutput(passName, mPinName); |
| 864 | } |
| 865 | } |
| 866 | } |
| 867 | |
| 868 | ImGui::Separator(); |
| 869 | } |
| 870 | |
| 871 | void RenderGraphUI::renderPopupMenu() |
| 872 | { |
no test coverage detected