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

◆ destroy_pipeline()

void MayaFlux::Portal::Graphics::ComputePress::destroy_pipeline ( ComputePipelineID  pipeline_id)

Definition at line 187 of file ComputePress.cpp.

188{
189 auto it = m_pipelines.find(pipeline_id);
190 if (it == m_pipelines.end()) {
191 return;
192 }
193
194 auto device = m_shader_foundry->get_device();
195
196 if (it->second.pipeline) {
197 it->second.pipeline->cleanup(device);
198 }
199
200 if (it->second.layout) {
201 device.destroyPipelineLayout(it->second.layout);
202 }
203
204 m_pipelines.erase(it);
205
207 "Destroyed compute pipeline (ID: {})", pipeline_id);
208}
#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.

+ Here is the call graph for this function: