MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / addResolvedVulkanPanel

Function addResolvedVulkanPanel

src/visualizer/gui/gui_manager.cpp:811–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers 1

collectVulkanGuidePanelsFunction · 0.85

Calls 2

validMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected