MayaFlux 0.2.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 266 of file ComputeProcessor.cpp.

267{
268 auto& foundry = Portal::Graphics::get_shader_foundry();
269 auto& compute_press = Portal::Graphics::get_compute_press();
270
272 compute_press.destroy_pipeline(m_pipeline_id);
274 }
275
277 foundry.destroy_shader(m_shader_id);
279 }
280
281 m_descriptor_set_ids.clear();
282 m_bound_buffers.clear();
283 m_initialized = false;
284}
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: