|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::VolumeGridBuffer::accumulate | ( | const std::string & | name, |
| const Kinesis::SpatialField & | field | ||
| ) |
Add sampled values into a scalar field.
| name | Field name. Must have stride sizeof(float). |
| field | Sampled at each cell centre in world space and added to whatever the field already holds. |
Blocking. Reads the current read slot to host memory, adds, and writes back, so it costs a full round trip at the lattice's byte size. Intended for authored injection on a coarse clock, not as a chain stage.
Definition at line 539 of file VolumeGridBuffer.cpp.
References MayaFlux::Journal::BufferManagement, MayaFlux::Journal::Buffers, MayaFlux::Kinesis::Lattice3D::cell_center(), MayaFlux::Kinesis::Lattice3D::cell_count(), find_field(), m_lattice, MF_ERROR, read_field(), MayaFlux::Kinesis::Lattice3D::resolution, and seed_raw().
Here is the call graph for this function: