mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-08-01 10:21:34 -04:00
The UI now always renders in a colour-only, single-sampled pass opened after the scene pass closes and after water refraction takes its copy. Three things fall out of that: The MSAA fallback is gone. Refraction previously captured after the UI whenever MSAA was on, because a second multisampled pass would have had to resolve again and could not preserve the resolved image. A separate single-sampled UI pass sidesteps that entirely, so the capture is UI-free at any sample count. The UI is no longer multisampled. ImGui draws axis-aligned rectangles and pre-antialiased glyphs, which MSAA does almost nothing for, so it was paying the scene's sample count for no visible gain. Both render passes are now built in one place and recreated together. The previous overlay pass was created in createImGuiResources but not in recreateSwapchain, so a single window resize silently disabled it. ImGui initialises against the overlay pass at one sample; its pipelines stay valid across swapchain recreation because the replacement pass is render-pass-compatible. Drops endFrameInlineMode_, which tracked which pass the UI should record into and no longer has a reader.