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

◆ cleanup_pipelines()

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

Definition at line 494 of file RenderFlow.cpp.

495{
496 auto device = m_shader_foundry->get_device();
497
498 for (auto& [id, state] : m_pipelines) {
499 if (state.pipeline) {
500 state.pipeline->cleanup(device);
501 }
502
503 for (auto layout : state.layouts) {
504 if (layout) {
505 device.destroyDescriptorSetLayout(layout);
506 }
507 }
508 }
509 m_pipelines.clear();
510
512 "Cleaned up all graphics pipelines");
513}
#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: