| 702 | } |
| 703 | |
| 704 | void RenderPassUI::addUIPin( |
| 705 | const std::string& fieldName, |
| 706 | uint32_t guiPinID, |
| 707 | bool isInput, |
| 708 | const std::string& connectedPinName, |
| 709 | const std::string& connectedNodeName, |
| 710 | bool isGraphOutput |
| 711 | ) |
| 712 | { |
| 713 | auto& pinsRef = isInput ? mInputPins : mOutputPins; |
| 714 | auto& nameToIndexMapRef = isInput ? mNameToIndexInput : mNameToIndexOutput; |
| 715 | |
| 716 | if (pinsRef.size() <= guiPinID) |
| 717 | { |
| 718 | pinsRef.resize(guiPinID + 1); |
| 719 | } |
| 720 | |
| 721 | PinUI& pinUIData = pinsRef[guiPinID]; |
| 722 | pinUIData.mPinName = fieldName; |
| 723 | pinUIData.mGuiPinID = guiPinID; |
| 724 | pinUIData.mConnectedPinName = connectedPinName; |
| 725 | pinUIData.mConnectedNodeName = connectedNodeName; |
| 726 | pinUIData.mIsGraphOutput = isGraphOutput; |
| 727 | |
| 728 | nameToIndexMapRef.insert(std::make_pair(pinUIData.mPinName, static_cast<uint32_t>(guiPinID))); |
| 729 | } |
| 730 | |
| 731 | void RenderPassUI::renderPinUI(const std::string& passName, RenderGraphUI* pGraphUI, uint32_t index, bool input) |
| 732 | { |
no test coverage detected