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

◆ recreate_swapchain_internal()

bool MayaFlux::Core::BackendWindowHandler::recreate_swapchain_internal ( WindowRenderContext context)
private

Internal logic to recreate swapchain and related resources.

Parameters
contextWindow render context
Returns
True if recreation succeeded

Definition at line 307 of file BackendWindowHandler.cpp.

308{
309 const auto& state = context.window->get_state();
310
311 if (!context.swapchain->recreate(state.current_width, state.current_height)) {
313 "Failed to recreate swapchain for window '{}'",
314 context.window->get_create_info().title);
315 return false;
316 }
317
318 return true;
319}
#define MF_RT_ERROR(comp, ctx,...)
@ GraphicsCallback
Graphics/visual rendering callback - frame-rate real-time.
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsCallback, MF_RT_ERROR, MayaFlux::Core::WindowRenderContext::swapchain, and MayaFlux::Core::WindowRenderContext::window.