MayaFlux 0.1.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 138 of file VKSwapchain.cpp.

139{
140 if (!m_context) {
142 "Cannot recreate swapchain: no context set");
143 return false;
144 }
145
146 m_context->get_device().waitIdle();
147
149
151}
#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: