| 729 | } |
| 730 | |
| 731 | void 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 | |
| 757 | void RenderPassUI::PinUI::renderFieldInfo( |
| 758 | const RenderPassReflection::Field& field, |
no test coverage detected