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

◆ set_data() [1/2]

void MayaFlux::Buffers::DataWriteProcessor::set_data ( Kakshya::DataVariant  variant)

Supply a single data value for the next cycle (slot 0).

Thread-safe. The variant is moved into the pending slot and the dirty flag is set. Conversion to the upload representation is deferred to processing_function() on the graphics thread.

Parameters
variantDataVariant compatible with the attached buffer's modality.

Definition at line 25 of file DataWriteProcessor.cpp.

26{
27 m_data_pending.clear();
28 m_data_pending.push_back(std::move(variant));
29 m_data_dirty.test_and_set(std::memory_order_release);
30}
std::vector< Kakshya::DataVariant > m_data_pending

References m_data_dirty, and m_data_pending.