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

◆ cleanup_pipelines()

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

Definition at line 540 of file RenderFlow.cpp.

541{
542 auto device = m_shader_foundry->get_device();
543
544 for (auto& [id, state] : m_pipelines) {
545 if (state.pipeline) {
546 state.pipeline->cleanup(device);
547 }
548
549 for (auto layout : state.layouts) {
550 if (layout) {
551 device.destroyDescriptorSetLayout(layout);
552 }
553 }
554 }
555 m_pipelines.clear();
556
558 "Cleaned up all graphics pipelines");
559}
#define MF_DEBUG(comp, ctx,...)
std::unordered_map< RenderPipelineID, PipelineState > m_pipelines
vk::Device get_device() const
Get logical device handle.
@ 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: