MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ recreate_swapchain_for_context()

void MayaFlux::Core::BackendWindowHandler::recreate_swapchain_for_context ( WindowRenderContext &  context)
private

Recreate the swapchain and related resources for a window.

Parameters
contextWindow render context

Definition at line 680 of file BackendWindowHandler.cpp.

681{
683
684 if (recreate_swapchain_internal(context)) {
685 context.needs_recreation = false;
687 "Recreated swapchain for window '{}' ({}x{})",
688 context.window->get_create_info().title,
689 context.window->get_state().current_width,
690 context.window->get_state().current_height);
691 }
692}
#define MF_RT_TRACE(comp, ctx,...)
bool recreate_swapchain_internal(WindowRenderContext &context)
Internal logic to recreate swapchain and related resources.
void wait_idle() const
Wait for device idle.
@ GraphicsCallback
Graphics/visual rendering callback - frame-rate real-time.
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsCallback, MF_RT_TRACE, MayaFlux::Core::WindowRenderContext::needs_recreation, and MayaFlux::Core::WindowRenderContext::window.