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

◆ processing_function()

void MayaFlux::Buffers::InstanceSSBOProcessor::processing_function ( const std::shared_ptr< Buffer > &  buffer)
overrideprotectedvirtual

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 66 of file InstanceSSBOProcessor.cpp.

67{
68 auto vk_buf = std::dynamic_pointer_cast<VKBuffer>(buffer);
69 if (!vk_buf || m_network->slot_count() == 0)
70 return;
71
72 const auto& slots = m_network->slots();
73
74 if (slots[0].node && slots[0].node->needs_gpu_update())
75 upload_template(vk_buf);
76
77 if (any_slot_dirty()) {
78 upload_transforms(vk_buf);
80 }
81
82 push_ssbo_binding(vk_buf);
83}
void push_ssbo_binding(const std::shared_ptr< VKBuffer > &vertex_buf)
std::shared_ptr< Nodes::Network::InstanceNetwork > m_network
void upload_transforms(const std::shared_ptr< VKBuffer > &vertex_buf)
void upload_template(const std::shared_ptr< VKBuffer > &vertex_buf)

References any_slot_dirty(), clear_dirty_flags(), m_network, push_ssbo_binding(), upload_template(), and upload_transforms().

+ Here is the call graph for this function: