MayaFlux 0.2.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 193 of file ComputePress.cpp.

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