MayaFlux 0.1.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 304 of file BackendWindowHandler.cpp.

305{
307
308 if (recreate_swapchain_internal(context)) {
309 context.needs_recreation = false;
311 "Recreated swapchain for window '{}' ({}x{})",
312 context.window->get_create_info().title,
313 context.window->get_state().current_width,
314 context.window->get_state().current_height);
315 }
316}
#define MF_RT_WARN(comp, ctx,...)
bool recreate_swapchain_internal(WindowRenderContext &context)
Internal logic to recreate swapchain and related resources.
void wait_idle() const
Wait for device idle.
Definition VKContext.hpp:97
@ GraphicsCallback
Graphics/visual rendering callback - frame-rate real-time.
@ Core
Core engine, backend, subsystems.

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