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

Method renderUI

Source/Falcor/RenderGraph/RenderGraphUI.cpp:846–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844}
845
846void 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
871void RenderGraphUI::renderPopupMenu()
872{

Callers 1

renderPinUIMethod · 0.45

Calls 15

CheckboxClass · 0.85
ImVec2Class · 0.85
getVisibilityMethod · 0.80
removeOutputMethod · 0.80
addOutputMethod · 0.80
setCurrentGuiMethod · 0.80
getSelectedNodesMethod · 0.80
groupMethod · 0.80
separatorMethod · 0.80
textMethod · 0.80
getPopupPinIndexMethod · 0.80
frontMethod · 0.80

Tested by

no test coverage detected