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

◆ cleanup_pipelines()

void MayaFlux::Portal::Graphics::ComputePress::cleanup_pipelines ( )
private

Definition at line 216 of file ComputePress.cpp.

217{
218 auto device = m_shader_foundry->get_device();
219
220 for (auto& [id, state] : m_pipelines) {
221 if (state.pipeline) {
222 state.pipeline->cleanup(device);
223 }
224
225 if (state.layout) {
226 device.destroyPipelineLayout(state.layout);
227 }
228 }
229
231 "Cleaned up all compute pipelines");
232}
#define MF_DEBUG(comp, ctx,...)
std::unordered_map< ComputePipelineID, PipelineState > m_pipelines
@ GPUCompute
GPU compute operations (shaders, GPGPU tasks)
@ Portal
High-level user-facing API layer.

References MayaFlux::Portal::Graphics::ShaderFoundry::get_device(), MayaFlux::Journal::GPUCompute, m_pipelines, m_shader_foundry, MF_DEBUG, and MayaFlux::Journal::Portal.

Referenced by shutdown().

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