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

◆ shutdown()

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

Definition at line 47 of file ComputePress.cpp.

48{
49 if (!s_initialized) {
50 return;
51 }
52
54 "Shutting down ComputePress...");
55
58 "Cannot shutdown ComputePress: ShaderFoundry not initialized");
59 return;
60 }
61
63
64 if (!device) {
66 "Cannot shutdown ComputePress: Vulkan device is null");
67 return;
68 }
69
71
75 }
76
77 m_pipelines.clear();
78 m_shader_foundry = nullptr;
79
80 s_initialized = false;
81
83 "ComputePress shutdown complete");
84}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
vk::PhysicalDevice device
Definition VKDevice.cpp:121
std::unordered_map< ComputePipelineID, PipelineState > m_pipelines
std::shared_ptr< Core::VKDescriptorManager > m_descriptor_manager
vk::Device get_device() const
Get logical device handle.
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(), device, 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: