|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::IOManager::save_mesh | ( | const std::shared_ptr< Buffers::ComputeMeshBuffer > & | buffer, |
| const std::string & | filepath, | ||
| const IO::ModelWriteOptions & | options = {} |
||
| ) |
Save a ComputeMeshBuffer's current live geometry to disk asynchronously.
ComputeMeshBuffer's geometry lives GPU-only, so this queues a real device-to-host transfer (IO::download_compute_mesh) on top of the disk write every overload above also queues. Returns once the task is queued; readback or write failure is logged from the task and does not surface here.
| buffer | Source buffer. setup_processors() must have run. |
| filepath | Destination path with extension. |
| options | Format-specific writer options. |
Definition at line 1016 of file IOManager.cpp.
References MayaFlux::Journal::API, buffer, MayaFlux::Journal::FileIO, MF_ERROR, MayaFlux::IO::save_mesh(), and track_save_task().
Here is the call graph for this function: