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

◆ cleanup()

void MayaFlux::Yantra::GpuResourceManager::cleanup ( )

Destroy every key currently held.

Called from the destructor.

Definition at line 325 of file GpuResourceManager.cpp.

326{
327 std::vector<std::string> keys;
328 keys.reserve(m_units.size());
329 for (const auto& [k, v] : m_units)
330 keys.push_back(k);
331 for (const auto& k : keys)
332 release(k);
333}
void release(const std::string &key)
Destroy the pipeline, shader, descriptor sets, and buffers for a single key, without affecting any ot...
std::unordered_map< std::string, std::unique_ptr< PipelineUnit > > m_units

References m_units, and release().

Referenced by ~GpuResourceManager().

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