MayaFlux 1.0.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 75 of file ShaderFoundry.cpp.

76{
77 if (!s_initialized || !m_backend) {
78 return;
79 }
80
82 "Stopping ShaderFoundry - freeing command buffers...");
83
84 auto device = get_device();
85
86 device.waitIdle();
87
89
91 "ShaderFoundry stopped - command buffers freed");
92}
#define MF_INFO(comp, ctx,...)
vk::PhysicalDevice device
Definition VKDevice.cpp:121
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 device, 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: