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

◆ stop()

void MayaFlux::Portal::Graphics::ShaderFoundry::stop ( )

Stop active command recording and free command buffers.

Frees all command buffers back to pool and destroys query pools. Call this BEFORE destroying pipelines/resources that command buffers reference. Does NOT destroy the command pool itself - that happens in shutdown().

Definition at line 58 of file ShaderFoundry.cpp.

59{
60 if (!s_initialized || !m_backend) {
61 return;
62 }
63
65 "Stopping ShaderFoundry - freeing command buffers...");
66
67 auto device = get_device();
68
69 device.waitIdle();
70
72
74 "ShaderFoundry stopped - command buffers freed");
75}
#define MF_INFO(comp, ctx,...)
vk::Device get_device() const
Get logical device handle.
void free_all_command_buffers()
Free all allocated command buffers.
std::shared_ptr< Core::VulkanBackend > m_backend
@ ShaderCompilation
Shader compilation tasks (Portal::Graphics::ShaderCompiler)
@ Portal
High-level user-facing API layer.

References free_all_command_buffers(), get_device(), m_backend, MF_INFO, MayaFlux::Journal::Portal, s_initialized, and MayaFlux::Journal::ShaderCompilation.

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

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