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

◆ cleanup()

void MayaFlux::Core::VKContext::cleanup ( )

Cleanup all Vulkan resources.

Definition at line 117 of file VKContext.cpp.

118{
119 for (auto surface : m_surfaces) {
120 if (surface) {
121 m_instance.get_instance().destroySurfaceKHR(surface);
122 }
123 }
124 m_surfaces.clear();
125
128}
std::vector< vk::SurfaceKHR > m_surfaces
void cleanup()
Cleanup device resources.
Definition VKDevice.cpp:58
void cleanup()
Cleanup Vulkan instance.
vk::Instance get_instance() const
Get the Vulkan instance handle.

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

Referenced by initialize().

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