Files
WoWee/include
Kelsi 2229742e25 refactor(render): draw the UI in its own single-sampled overlay pass
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.
2026-07-31 07:04:19 -07:00
..