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

◆ compute_frame()

void MayaFlux::Nodes::GpuSync::ComputeOutNode::compute_frame ( )
overridevirtual

Compute GPU data for this frame.

Called once per VISUAL_RATE tick. Subclasses populate their respective buffers (pixel_buffer, vertex_buffer, readback_data).

Implements MayaFlux::Nodes::GpuSync::GpuSync.

Definition at line 37 of file ComputeOutNode.cpp.

38{
41 m_readback_data.data(),
42 m_readback_data.size() * sizeof(double));
43
45}
std::shared_ptr< Buffers::VKBuffer > m_gpu_buffer
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:378
void download_from_gpu(const std::shared_ptr< VKBuffer > &source, void *data, size_t size, const std::shared_ptr< VKBuffer > &staging)
Download from GPU buffer to raw data (auto-detects host-visible vs device-local)

References MayaFlux::Buffers::download_from_gpu(), m_gpu_buffer, MayaFlux::Nodes::Node::m_last_output, and m_readback_data.

+ Here is the call graph for this function: