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

◆ destroy_surface()

void MayaFlux::Core::VKContext::destroy_surface ( vk::SurfaceKHR  surface)

Destroy a specific surface Called when window is unregistered.

Definition at line 104 of file VKContext.cpp.

105{
106 if (!surface)
107 return;
108
109 auto it = std::ranges::find(m_surfaces, surface);
110 if (it != m_surfaces.end()) {
111 m_instance.get_instance().destroySurfaceKHR(*it);
112 m_surfaces.erase(it);
113 }
114}
std::vector< vk::SurfaceKHR > m_surfaces
vk::Instance get_instance() const
Get the Vulkan instance handle.

References MayaFlux::Core::VKInstance::get_instance(), m_instance, and m_surfaces.

Referenced by MayaFlux::Core::WindowRenderContext::cleanup(), and MayaFlux::Core::BackendWindowHandler::register_window().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: