MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ make_network_geometry_source()

MAYAFLUX_API SpatialCaptureSource MayaFlux::IO::make_network_geometry_source ( std::string  stream_name,
std::shared_ptr< Buffers::NetworkGeometryBuffer buffer 
)

Build a SpatialCaptureSource that packs a NetworkGeometryBuffer's driving network through write_network_geometry_buffer_sample() each tick.

Parameters
stream_nameStream name within the target archive.
bufferSource buffer, held for the source's lifetime.

Definition at line 18 of file SpatialTransfer.cpp.

21{
23 .stream_name = std::move(stream_name),
24 .capture_frame = [buffer](SpatialCache& cache, const std::string& name) {
26 }
27 };
28}
std::shared_ptr< NetworkGeometryBuffer > buffer
std::string name
Definition VKDevice.cpp:143
Alembic-backed writer for time-sampled spatial entity state: particle systems, point clouds,...
bool write_network_geometry_buffer_sample(SpatialCache &cache, const std::string &stream_name, const std::shared_ptr< Buffers::NetworkGeometryBuffer > &buffer)
Pack a NetworkGeometryBuffer's driving network into one or more SpatialCache streams,...
One named stream a SpatialCapture (or save_spatial_snapshot) writes into a SpatialCache each tick.

References buffer, name, MayaFlux::IO::SpatialCaptureSource::stream_name, and write_network_geometry_buffer_sample().

+ Here is the call graph for this function: