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

◆ cleanup()

void MayaFlux::Core::VKComputePipeline::cleanup ( vk::Device  device)

Cleanup pipeline resources.

Parameters
deviceLogical device (must match creation device)

Destroys pipeline and pipeline layout. Safe to call multiple times.

Definition at line 48 of file VKComputePipeline.cpp.

49{
50 if (m_pipeline) {
51 device.destroyPipeline(m_pipeline);
52 m_pipeline = nullptr;
54 "Compute pipeline destroyed");
55 }
56
57 if (m_layout) {
58 device.destroyPipelineLayout(m_layout);
59 m_layout = nullptr;
61 "Pipeline layout destroyed");
62 }
63
64 m_workgroup_size.reset();
65 m_shader.reset();
66}
#define MF_DEBUG(comp, ctx,...)
vk::PhysicalDevice device
Definition VKDevice.cpp:121
std::optional< std::array< uint32_t, 3 > > m_workgroup_size
std::shared_ptr< VKShaderModule > m_shader
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, device, MayaFlux::Journal::GraphicsBackend, m_layout, m_pipeline, m_shader, m_workgroup_size, and MF_DEBUG.