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

◆ processing_function()

void MayaFlux::Buffers::MeshProcessor::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 83 of file MeshProcessor.cpp.

84{
85 if (!m_mesh_buffer) {
86 return;
87 }
88
89 if (m_mesh_buffer->vertices_dirty()) {
91 m_mesh_buffer->clear_vertices_dirty();
92
94 "MeshProcessor: re-uploaded vertex data ({} bytes)",
95 m_mesh_buffer->get_size_bytes());
96 }
97
98 if (m_mesh_buffer->indices_dirty()) {
101 m_mesh_buffer->clear_indices_dirty();
102
104 "MeshProcessor: re-uploaded index data ({} indices)",
105 m_mesh_buffer->get_index_count());
106 }
107}
#define MF_DEBUG(comp, ctx,...)
void upload_vertices(const std::shared_ptr< MeshBuffer > &buf)
std::shared_ptr< MeshBuffer > m_mesh_buffer
void upload_indices(const std::shared_ptr< MeshBuffer > &buf)
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, link_index_resources(), m_mesh_buffer, MF_DEBUG, upload_indices(), and upload_vertices().

+ Here is the call graph for this function: