|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::IOManager::save_mesh | ( | const std::shared_ptr< Buffers::MeshBuffer > & | mesh_buffer, |
| const std::string & | filepath, | ||
| const IO::ModelWriteOptions & | options = {} |
||
| ) |
Save a MeshBuffer's mesh data to disk asynchronously.
MeshData is always CPU-authoritative for MeshBuffer, so there is no download to wait on, but the write itself (AssimpModelWriter -> Assimp::Exporter -> disk) is still blocking I/O; queuing it here keeps that off the caller's thread, the same reason save_image/save_volume do. Returns once the task is queued; write failure is logged from the task and does not surface here.
| mesh_buffer | Source mesh. Must have valid MeshData. |
| filepath | Destination path with extension. |
| options | Format-specific writer options. |
Definition at line 977 of file IOManager.cpp.
References MayaFlux::IO::save_mesh(), and track_save_task().
Here is the call graph for this function: