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

◆ processing_function()

void MayaFlux::Buffers::ShaderProcessor::processing_function ( std::shared_ptr< Buffer buffer)
overridevirtual

The core processing function that must be implemented by derived classes.

Parameters
bufferBuffer to process

This method is where the actual transformation logic is implemented. It should contain the algorithmic details of how the buffer's data is transformed, analyzed, or processed. The implementation can utilize any backend capabilities available to the processor, including:

  • Parallel Processing: Using multi-threading or GPU compute for large datasets
  • Data Transformations: Applying mathematical operations, filters, or effects
  • Feature Extraction: Analyzing data characteristics for further processing

Derived classes must override this method to provide specific processing behavior.

Implements MayaFlux::Buffers::BufferProcessor.

Definition at line 35 of file ShaderProcessor.cpp.

36{
37 auto vk_buffer = std::dynamic_pointer_cast<VKBuffer>(buffer);
38 if (!vk_buffer) {
40 "ShaderProcessor can only process VKBuffers");
41 return;
42 }
43
44 if (!m_initialized) {
46 initialize_pipeline(buffer);
48 m_initialized = true;
49 }
50
52 initialize_pipeline(buffer);
54 }
55
59 }
60
62 execute_dispatch(vk_buffer);
63}
#define MF_ERROR(comp, ctx,...)
void execute_dispatch(const std::shared_ptr< VKBuffer > &buffer)
virtual void initialize_pipeline(const std::shared_ptr< Buffer > &buffer)
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, execute_dispatch(), initialize_descriptors(), initialize_pipeline(), initialize_shader(), m_initialized, m_needs_descriptor_rebuild, m_needs_pipeline_rebuild, MF_ERROR, and update_descriptors().

+ Here is the call graph for this function: