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

◆ set_gpu_compatible()

virtual void MayaFlux::Nodes::Node::set_gpu_compatible ( bool  compatible)
inlinevirtual

Sets whether the node is compatible with GPU processing.

Parameters
compatibleTrue if the node supports GPU processing, false otherwise

Reimplemented in MayaFlux::Nodes::Filters::Filter, MayaFlux::Nodes::Generator::Logic, and MayaFlux::Nodes::Generator::Polynomial.

Definition at line 360 of file Node.hpp.

361 {
362 m_gpu_compatible = compatible;
363 if (compatible) {
364 m_timing_rate = m_frame_rate; // Use frame rate for timing calculations if GPU compatible
365 } else {
366 m_timing_rate = m_sample_rate; // Use sample rate for timing calculations if not GPU compatible
367 }
368 }
uint32_t m_sample_rate
Sample rate for audio processing, used for normalization.
Definition Node.hpp:479
bool m_gpu_compatible
Flag indicating if the node supports GPU processing This flag is set by derived classes to indicate w...
Definition Node.hpp:434
uint32_t m_frame_rate
Frame rate for time-based processing, used for normalization.
Definition Node.hpp:481
uint32_t m_timing_rate
Current timing rate for the node, used for timing calculations (can be sample rate or frame rate)
Definition Node.hpp:483