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

◆ shutdown()

void MayaFlux::Portal::Graphics::ComputePress::shutdown ( )

Definition at line 46 of file ComputePress.cpp.

47{
48 if (!s_initialized) {
49 return;
50 }
51
53 "Shutting down ComputePress...");
54
57 "Cannot shutdown ComputePress: ShaderFoundry not initialized");
58 return;
59 }
60
61 auto device = m_shader_foundry->get_device();
62
63 if (!device) {
65 "Cannot shutdown ComputePress: Vulkan device is null");
66 return;
67 }
68
70
71 if (m_descriptor_manager && device) {
72 m_descriptor_manager->cleanup(device);
74 }
75
76 m_pipelines.clear();
77 m_shader_foundry = nullptr;
78
79 s_initialized = false;
80
82 "ComputePress shutdown complete");
83}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
std::unordered_map< ComputePipelineID, PipelineState > m_pipelines
std::shared_ptr< Core::VKDescriptorManager > m_descriptor_manager
bool is_initialized() const
Check if compiler is initialized.
@ GPUCompute
GPU compute operations (shaders, GPGPU tasks)
@ Portal
High-level user-facing API layer.

References cleanup_pipelines(), MayaFlux::Portal::Graphics::ShaderFoundry::get_device(), MayaFlux::Journal::GPUCompute, MayaFlux::Portal::Graphics::ShaderFoundry::is_initialized(), m_descriptor_manager, m_pipelines, m_shader_foundry, MF_ERROR, MF_INFO, MayaFlux::Journal::Portal, and s_initialized.

Referenced by MayaFlux::Portal::Graphics::shutdown().

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