|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::RelaxationGridBuffer::seed_state | ( | const void * | data, |
| size_t | size | ||
| ) |
Write initial state directly into the current front generation.
| data | Pointer to cell_count * cell_stride_bytes of state data. |
| size | Byte count; must equal get_state_bytes(). |
Direct host-visible memcpy into back_buffers[front_index()], mirroring VKBuffer::set_data's own host-visible write path. Valid only before the buffer's processing chain has run at least once, or between generations where overwriting the current front state is intended (e.g. a runtime reset). Does not touch the back generation or trigger a swap.
Definition at line 121 of file RelaxationGridBuffer.cpp.
References MayaFlux::Journal::BufferManagement, MayaFlux::Journal::Buffers, front_index(), MayaFlux::Buffers::VKBuffer::get_buffer_resources(), get_state_bytes(), and MF_ERROR.
Here is the call graph for this function: