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

◆ set_data() [2/2]

void MayaFlux::Buffers::DataWriteProcessor::set_data ( std::vector< Kakshya::DataVariant variants)

Supply multiple data values for the next cycle.

Slot 0 is the primary upload path (modality-routed). Slots 1..N are uploaded raw and correspond to secondary resources (e.g. texture data alongside vertex data). The caller is responsible for ensuring the attached buffer and its RenderProcessor have been configured with matching descriptor bindings for any secondary slots.

Thread-safe. The full vector is swapped atomically on the next processing_function() call.

Parameters
variantsOne or more DataVariant values. Must not be empty.

Definition at line 32 of file DataWriteProcessor.cpp.

33{
34 m_data_pending = std::move(variants);
35 m_data_dirty.test_and_set(std::memory_order_release);
36}
std::vector< Kakshya::DataVariant > m_data_pending

References m_data_dirty, and m_data_pending.