|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::optional< Kakshya::MeshData > MayaFlux::Buffers::download_compute_mesh | ( | const std::shared_ptr< ComputeMeshBuffer > & | buffer | ) |
Download a ComputeMeshBuffer's current live geometry to CPU.
One-shot and blocking, via download_from_gpu_async: call it off the graphics thread. Downloads exactly ComputeMeshBuffer::get_live_vertex_count() vertices rather than the worst-case allocation.
| buffer | Source buffer. setup_processors() must have run. |
Definition at line 460 of file StagingUtils.cpp.
References buffer, MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, download_from_gpu_async(), MF_ERROR, and triangle_soup_mesh().
Referenced by MayaFlux::IO::download_compute_mesh().
Here is the call graph for this function:
Here is the caller graph for this function: