MayaFlux 0.1.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 100 of file VKContext.cpp.

101{
102 if (!surface)
103 return;
104
105 auto it = std::ranges::find(m_surfaces, surface);
106 if (it != m_surfaces.end()) {
107 m_instance.get_instance().destroySurfaceKHR(*it);
108 m_surfaces.erase(it);
109 }
110}
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: