One frame's readback and write.
Called from the routine body.
- Returns
- False on failure, which ends the routine.
Definition at line 264 of file VolumeTransfer.cpp.
265{
267 return false;
268 }
269
271 if (!data) {
273 "VolumeCapture: readback failed at frame {}",
m_frame);
274 return false;
275 }
276
279 "VolumeCapture: write failed at frame {}",
m_frame);
280 return false;
281 }
282
284 return true;
285}
#define MF_ERROR(comp, ctx,...)
std::vector< std::string > m_fields
VolumeWriteOptions m_options
std::shared_ptr< Buffers::VolumeGridBuffer > m_volume
std::string resolve_sequence_path(std::string_view pattern, uint64_t frame)
Substitute a frame index into a numbered output pattern.
std::optional< Kakshya::VolumeData > download_volume(const std::shared_ptr< Buffers::VolumeGridBuffer > &volume, const std::vector< std::string > &field_names)
Download named fields from a GPU-resident volume into host VolumeData.
@ FileIO
Filesystem I/O operations.
@ IO
Networking, file handling, streaming.
References MayaFlux::IO::download_volume(), MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, m_fields, m_frame, m_max_frames, m_options, m_pattern, m_volume, m_write, MF_ERROR, and MayaFlux::IO::resolve_sequence_path().