MayaFlux 0.5.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 289 of file GpuResourceManager.cpp.

290{
291 std::vector<std::string> keys;
292 keys.reserve(m_units.size());
293 for (const auto& [k, v] : m_units)
294 keys.push_back(k);
295 for (const auto& k : keys)
296 release(k);
297}
float k
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 k, m_units, and release().

Referenced by ~GpuResourceManager().

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