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

Method renderPinUI

Source/Falcor/RenderGraph/RenderGraphUI.cpp:731–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731void RenderPassUI::renderPinUI(const std::string& passName, RenderGraphUI* pGraphUI, uint32_t index, bool input)
732{
733 RenderPassUI::PinUI& pinUI = input ? mInputPins[index] : mOutputPins[index];
734
735 size_t fieldIndex = -1;
736 for (size_t i = 0; i < mReflection.getFieldCount(); ++i)
737 {
738 if (mReflection.getField(i)->getName() == pinUI.mPinName)
739 {
740 fieldIndex = i;
741 break;
742 }
743 }
744
745 if (fieldIndex != -1)
746 {
747 // only render ui if is input or output
748 const RenderPassReflection::Field& field = *mReflection.getField(fieldIndex);
749 if (is_set(field.getVisibility(), RenderPassReflection::Field::Visibility::Input) ||
750 is_set(field.getVisibility(), RenderPassReflection::Field::Visibility::Output))
751 {
752 pinUI.renderUI(field, pGraphUI, passName);
753 }
754 }
755}
756
757void RenderPassUI::PinUI::renderFieldInfo(
758 const RenderPassReflection::Field& field,

Callers 1

renderPopupMenuMethod · 0.80

Calls 4

getVisibilityMethod · 0.80
getNameMethod · 0.45
getFieldMethod · 0.45
renderUIMethod · 0.45

Tested by

no test coverage detected