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

◆ set_pixel_data()

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

Supply pixel data for the co-resident texture on the next cycle.

Independent of the vertex data path. Requires setup_pixel_target() to have been called. On the next processing_function() call the variant is routed through as_texture_access() and uploaded to the GPU texture bound at the configured binding.

Thread-safe. The variant is swapped atomically behind m_pixel_dirty.

Parameters
variantPixel data compatible with the format passed to setup_pixel_target().

Definition at line 51 of file DataWriteProcessor.cpp.

52{
53 m_pixel_pending = std::move(variant);
54 m_pixel_dirty.test_and_set(std::memory_order_release);
55}

References m_pixel_dirty, and m_pixel_pending.