MayaFlux 0.2.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 293 of file BackendWindowHandler.cpp.

294{
296
297 if (recreate_swapchain_internal(context)) {
298 context.needs_recreation = false;
300 "Recreated swapchain for window '{}' ({}x{})",
301 context.window->get_create_info().title,
302 context.window->get_state().current_width,
303 context.window->get_state().current_height);
304 }
305}
#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.