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

◆ recreate()

bool MayaFlux::Core::VKSwapchain::recreate ( uint32_t  width,
uint32_t  height 
)

Recreate swapchain (for window resize)

Parameters
widthNew width
heightNew height
Returns
True if recreation succeeded

Definition at line 145 of file VKSwapchain.cpp.

146{
147 if (!m_context) {
149 "Cannot recreate swapchain: no context set");
150 return false;
151 }
152
153 m_context->get_device().waitIdle();
154
156
158}
#define MF_ERROR(comp, ctx,...)
vk::Device get_device() const
Get logical device.
Definition VKContext.hpp:49
void cleanup_swapchain()
Cleanup old swapchain during recreation.
bool create(VKContext &context, vk::SurfaceKHR surface, const WindowCreateInfo &window_config)
Create swapchain for the given surface using VKContext.
const WindowCreateInfo * m_window_config
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

References cleanup_swapchain(), MayaFlux::Journal::Core, create(), MayaFlux::Core::VKContext::get_device(), MayaFlux::Journal::GraphicsBackend, m_context, m_surface, m_window_config, and MF_ERROR.

+ Here is the call graph for this function: