|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::IOManager::save_volume | ( | const std::shared_ptr< Buffers::VolumeGridBuffer > & | volume, |
| const std::string & | filepath, | ||
| const IO::VolumeWriteOptions & | options = {}, |
||
| const std::vector< std::string > & | field_names = {} |
||
| ) |
Download and save a GPU-resident volume to disk asynchronously.
Mirrors save_image(VKImage): download, writer lookup and write all happen inside the dispatched task, so this returns as soon as the task is queued rather than blocking the caller. The future is tracked in the same pool as every other save task; wait_for_pending_saves() waits on it like any other.
| volume | Volume to read from. |
| filepath | Destination path; extension selects the writer. |
| options | Writer options. |
| field_names | Fields to save. Empty means every declared field. |
Definition at line 1329 of file IOManager.cpp.
References MayaFlux::IO::download_volume(), MayaFlux::IO::Detail::execute_volume_write(), MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, MF_ERROR, and track_save_task().
Here is the call graph for this function: