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

◆ cleanup_pipelines()

void MayaFlux::Portal::Graphics::RenderFlow::cleanup_pipelines ( )
private

Definition at line 461 of file RenderFlow.cpp.

462{
463 auto device = m_shader_foundry->get_device();
464
465 for (auto& [id, state] : m_pipelines) {
466 if (state.pipeline) {
467 state.pipeline->cleanup(device);
468 }
469
470 for (auto layout : state.layouts) {
471 if (layout) {
472 device.destroyDescriptorSetLayout(layout);
473 }
474 }
475 }
476 m_pipelines.clear();
477
479 "Cleaned up all graphics pipelines");
480}
#define MF_DEBUG(comp, ctx,...)
std::unordered_map< RenderPipelineID, PipelineState > m_pipelines
@ Rendering
GPU rendering operations (graphics pipeline, frame rendering)
@ Portal
High-level user-facing API layer.

References MayaFlux::Portal::Graphics::ShaderFoundry::get_device(), m_pipelines, m_shader_foundry, MF_DEBUG, MayaFlux::Journal::Portal, and MayaFlux::Journal::Rendering.

Referenced by shutdown().

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