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

◆ on_attach()

virtual void MayaFlux::Buffers::BufferProcessor::on_attach ( std::shared_ptr< Buffer )
inlinevirtual

Called when this processor is attached to a buffer.

Parameters
bufferBuffer this processor is being attached to

Provides an opportunity for the processor to initialize buffer-specific state, allocate resources, or perform validation. With expanded processor capabilities, this method can also:

  • Analyze Buffer Characteristics: Examine data type, size, and format requirements
  • Select Optimal Backend: Choose the most appropriate processing backend for the buffer
  • Initialize Hardware Resources: Set up GPU contexts, CUDA streams, or other acceleration
  • Configure Processing Parameters: Adapt algorithm parameters to buffer characteristics
  • Establish Processing Strategy: Determine whether to use sequential or parallel execution
  • Validate Compatibility: Ensure the processor can handle the buffer's data type and format

Default implementation does nothing, but derived classes should override this method to leverage the full capabilities of the expanded processor architecture.

Reimplemented in MayaFlux::Buffers::ContainerToBufferAdapter, MayaFlux::Buffers::FileBridgeProcessor, MayaFlux::Buffers::InputAccessProcessor, MayaFlux::Buffers::QuickProcess, MayaFlux::Buffers::FilterProcessor, MayaFlux::Buffers::LogicProcessor, MayaFlux::Buffers::PolynomialProcessor, MayaFlux::Buffers::FeedbackProcessor, MayaFlux::Buffers::ChannelProcessor, MayaFlux::Buffers::FinalLimiterProcessor, MayaFlux::Buffers::GraphicsBatchProcessor, MayaFlux::Buffers::PresentProcessor, MayaFlux::Buffers::RenderProcessor, MayaFlux::Buffers::ShaderProcessor, MayaFlux::Buffers::BufferDownloadProcessor, MayaFlux::Buffers::BufferUploadProcessor, MayaFlux::Buffers::TransferProcessor, and MayaFlux::Buffers::TextureProcessor.

Definition at line 120 of file BufferProcessor.hpp.

120{};