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

◆ cleanup()

void MayaFlux::Buffers::ShaderProcessor::cleanup ( )
protectedvirtual

Reimplemented in MayaFlux::Buffers::RenderProcessor.

Definition at line 559 of file ShaderProcessor.cpp.

560{
561 auto& foundry = Portal::Graphics::get_shader_foundry();
562 auto& compute_press = Portal::Graphics::get_compute_press();
563
565 compute_press.destroy_pipeline(m_pipeline_id); // ← ComputePress
567 }
568
570 foundry.destroy_shader(m_shader_id); // ← ShaderFoundry
572 }
573
574 m_descriptor_set_ids.clear();
575 m_bound_buffers.clear();
576 m_initialized = false;
577}
std::unordered_map< std::string, std::shared_ptr< VKBuffer > > m_bound_buffers
Portal::Graphics::ShaderID m_shader_id
Portal::Graphics::ComputePipelineID m_pipeline_id
std::vector< Portal::Graphics::DescriptorSetID > m_descriptor_set_ids
constexpr ShaderID INVALID_SHADER
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.
constexpr ComputePipelineID INVALID_COMPUTE_PIPELINE
MAYAFLUX_API ComputePress & get_compute_press()

References MayaFlux::Portal::Graphics::get_compute_press(), MayaFlux::Portal::Graphics::get_shader_foundry(), MayaFlux::Portal::Graphics::INVALID_COMPUTE_PIPELINE, MayaFlux::Portal::Graphics::INVALID_SHADER, m_bound_buffers, m_descriptor_set_ids, m_initialized, m_pipeline_id, and m_shader_id.

Referenced by MayaFlux::Buffers::RenderProcessor::cleanup(), and ~ShaderProcessor().

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