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

◆ set_bytes()

void MayaFlux::Buffers::FormaProcessor::set_bytes ( std::vector< uint8_t >  bytes)

Supply new vertex bytes for the next graphics tick.

Thread-safe via atomic_flag. Called from Mapped::sync() on the scheduler tick. The bytes are swapped into the active slot on the next processing_function call.

Parameters
bytesRaw interleaved vertex bytes matching the topology's vertex type (PointVertex, LineVertex, or MeshVertex).

Definition at line 31 of file FormaProcessor.cpp.

32{
33 m_pending_geometry = std::move(bytes);
34 m_geometry_dirty.test_and_set(std::memory_order_release);
35}
std::vector< uint8_t > m_pending_geometry

References m_geometry_dirty, and m_pending_geometry.