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

◆ processing_function()

void MayaFlux::Buffers::RaymarchProcessor::processing_function ( const 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 95 of file RaymarchProcessor.cpp.

96{
97 auto vk_buffer = std::dynamic_pointer_cast<VKBuffer>(buffer);
98 if (!vk_buffer || !m_source) {
99 return;
100 }
101
102 const vk::Buffer handle = m_source();
103 if (!handle) {
104 return;
105 }
106
107 stage_descriptor(vk_buffer, handle);
108 stage_params(vk_buffer);
109}
void stage_params(const std::shared_ptr< VKBuffer > &buffer)
Insert or replace the push constant fragment.
void stage_descriptor(const std::shared_ptr< VKBuffer > &buffer, vk::Buffer handle)
Insert or replace the descriptor entry for the field handle.

References m_source, stage_descriptor(), and stage_params().

+ Here is the call graph for this function: