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

◆ on_detach()

void MayaFlux::Buffers::GeometryWriteProcessor::on_detach ( const std::shared_ptr< Buffer > &  )
overrideprotectedvirtual

Called when this processor is detached from a buffer.

Parameters
bufferBuffer this processor is being detached from

Provides an opportunity for the processor to clean up buffer-specific state or release resources. With expanded processor capabilities, this method should also:

  • Release Hardware Resources: Clean up GPU memory, CUDA contexts, or other acceleration resources
  • Finalize Backend Operations: Ensure all pending backend operations are completed
  • Reset Processing State: Clear any buffer-specific optimization parameters or cached data
  • Restore Default Backend: Return to default processing backend if override was applied
  • Synchronize Operations: Ensure all parallel processing operations have completed

Default implementation does nothing, but proper resource management in derived classes is crucial for optimal performance and preventing resource leaks.

Reimplemented from MayaFlux::Buffers::BufferProcessor.

Definition at line 53 of file GeometryWriteProcessor.cpp.

54{
55 m_staging.reset();
56 m_active_data.reset();
57 m_active_vertices.reset();
58 m_pending_data.reset();
59 m_pending_vertices.reset();
60}
std::optional< Kakshya::DataVariant > m_pending_data
std::optional< Kakshya::DataVariant > m_active_data
std::optional< VertexSnapshot > m_pending_vertices
std::optional< VertexSnapshot > m_active_vertices

References m_active_data, m_active_vertices, m_pending_data, m_pending_vertices, and m_staging.