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

◆ cleanup_pipelines()

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

Definition at line 545 of file RenderFlow.cpp.

546{
548
549 for (auto& [id, state] : m_pipelines) {
550 if (state.pipeline) {
551 state.pipeline->cleanup(device);
552 }
553
554 for (auto layout : state.layouts) {
555 if (layout) {
556 device.destroyDescriptorSetLayout(layout);
557 }
558 }
559 }
560 m_pipelines.clear();
561
563 "Cleaned up all graphics pipelines");
564}
#define MF_DEBUG(comp, ctx,...)
vk::PhysicalDevice device
Definition VKDevice.cpp:121
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 device, 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: