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

◆ set_data()

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

Supply pixel data for the next cycle.

Parameters
variantRouted through Kakshya::as_texture_access() inside update_pixels_if_dirty() for type validation and promotion. Sets TextureBuffer dirty flag so upload is scheduled.

Definition at line 13 of file TextureWriteProcessor.cpp.

14{
15 m_pending = std::move(variant);
16 m_dirty.test_and_set(std::memory_order_release);
17
18 if (m_texture_buffer) {
19 m_texture_buffer->mark_texture_dirty();
20 }
21}
std::shared_ptr< TextureBuffer > m_texture_buffer
std::optional< Kakshya::DataVariant > m_pending

References m_dirty, m_pending, and MayaFlux::Buffers::TextureProcessor::m_texture_buffer.