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

◆ process_sample()

double MayaFlux::Nodes::GpuSync::GeometryReadbackNode::process_sample ( double  )
inlineoverridevirtual

Suppress automatic compute_frame() invocation by the node graph.

GeometryReadbackNode::compute_frame() issues a synchronous GPU-to-CPU transfer via download_from_gpu_async. Calling it from the graphics thread (which is what GpuSync::process_sample does when the node is registered at VISUAL_RATE) produces undefined behaviour due to re-entrant queue submission. The node must be driven manually from a FRAME_ACCURATE metro that runs on the scheduler thread.

Returns
Always 0.0.

Implements MayaFlux::Nodes::Node.

Definition at line 79 of file GeometryReadbackNode.hpp.

79{ return 0.0; }