|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
private |
Grow a binding's staging buffer to hold at least bytes.
The target vertex buffer resizes with 1.5x headroom when a network grows, so the staging buffer it was sized against goes stale. Growing by the same factor keeps reallocation proportional to growth rather than per frame.
| binding | Binding whose staging_buffer is checked and possibly replaced. |
| bytes | Required capacity. |
Definition at line 269 of file NetworkGeometryProcessor.cpp.
References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Buffers::create_staging_buffer(), MayaFlux::Buffers::NetworkGeometryProcessor::NetworkBinding::gpu_vertex_buffer, MF_DEBUG, and MayaFlux::Buffers::NetworkGeometryProcessor::NetworkBinding::staging_buffer.
Referenced by processing_function(), and try_incremental_upload().
Here is the call graph for this function:
Here is the caller graph for this function: