| 809 | } |
| 810 | |
| 811 | void addResolvedVulkanPanel(std::vector<VulkanGuidePanelTarget>& panels, |
| 812 | const std::optional<RenderingManager::ViewerPanelInfo>& info_opt) { |
| 813 | if (!info_opt || !info_opt->valid()) { |
| 814 | return; |
| 815 | } |
| 816 | const auto& info = *info_opt; |
| 817 | panels.push_back({ |
| 818 | .panel = info.panel, |
| 819 | .viewport = info.viewport, |
| 820 | .pos = {info.x, info.y}, |
| 821 | .size = {info.width, info.height}, |
| 822 | .render_size = {info.render_width, info.render_height}, |
| 823 | }); |
| 824 | } |
| 825 | |
| 826 | [[nodiscard]] std::vector<VulkanGuidePanelTarget> collectVulkanGuidePanels( |
| 827 | const VisualizerImpl& viewer, |
no test coverage detected