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

◆ cleanup()

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

Reimplemented in MayaFlux::Buffers::ComputeProcessor, and MayaFlux::Buffers::RenderProcessor.

Definition at line 827 of file ShaderProcessor.cpp.

828{
830 auto& foundry = Portal::Graphics::get_shader_foundry();
831 auto& compute_press = Portal::Graphics::get_compute_press();
832
834 foundry.destroy_shader(m_shader_id);
836 }
837
838 m_descriptor_set_ids.clear();
839 m_bound_buffers.clear();
840 m_feeds.clear();
841 m_created_layout.reset();
842 m_initialized = false;
843}
std::unordered_map< std::string, std::shared_ptr< VKBuffer > > m_bound_buffers
Portal::Graphics::ShaderID m_shader_id
std::optional< uint64_t > m_created_layout
bool resolve_pending_dispatch(bool block)
Resolve an outstanding asynchronous submission.
std::unordered_map< std::string, Feed > m_feeds
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.
MAYAFLUX_API ComputePress & get_compute_press()

References MayaFlux::Portal::Graphics::get_compute_press(), MayaFlux::Portal::Graphics::get_shader_foundry(), MayaFlux::Portal::Graphics::INVALID_SHADER, m_bound_buffers, m_created_layout, m_descriptor_set_ids, m_feeds, m_initialized, m_shader_id, and resolve_pending_dispatch().

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

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