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

◆ cleanup()

void MayaFlux::Buffers::ComputeProcessor::cleanup ( )
overrideprotectedvirtual

Reimplemented from MayaFlux::Buffers::ShaderProcessor.

Definition at line 312 of file ComputeProcessor.cpp.

313{
314 auto& foundry = Portal::Graphics::get_shader_foundry();
315 auto& compute_press = Portal::Graphics::get_compute_press();
316
318 compute_press.destroy_pipeline(m_pipeline_id);
320 }
321
323 foundry.destroy_shader(m_shader_id);
325 }
326
327 m_descriptor_set_ids.clear();
328 m_bound_buffers.clear();
329 m_initialized = false;
330}
Portal::Graphics::ComputePipelineID m_pipeline_id
std::unordered_map< std::string, std::shared_ptr< VKBuffer > > m_bound_buffers
Portal::Graphics::ShaderID m_shader_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, MayaFlux::Buffers::ShaderProcessor::m_bound_buffers, MayaFlux::Buffers::ShaderProcessor::m_descriptor_set_ids, MayaFlux::Buffers::ShaderProcessor::m_initialized, m_pipeline_id, and MayaFlux::Buffers::ShaderProcessor::m_shader_id.

+ Here is the call graph for this function: