MayaFlux 0.4.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 340 of file Node.hpp.

341 {
342 m_gpu_compatible = compatible;
343 if (compatible) {
344 m_timing_rate = m_frame_rate; // Use frame rate for timing calculations if GPU compatible
345 } else {
346 m_timing_rate = m_sample_rate; // Use sample rate for timing calculations if not GPU compatible
347 }
348 }
uint32_t m_sample_rate
Sample rate for audio processing, used for normalization.
Definition Node.hpp:459
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:414
uint32_t m_frame_rate
Frame rate for time-based processing, used for normalization.
Definition Node.hpp:461
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:463