MayaFlux 1.0.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 376 of file Node.hpp.

377 {
378 m_gpu_compatible = compatible;
379 if (compatible) {
380 m_timing_rate = m_frame_rate; // Use frame rate for timing calculations if GPU compatible
381 } else {
382 m_timing_rate = m_sample_rate; // Use sample rate for timing calculations if not GPU compatible
383 }
384 }
uint32_t m_sample_rate
Sample rate for audio processing, used for normalization.
Definition Node.hpp:500
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:450
uint32_t m_frame_rate
Frame rate for time-based processing, used for normalization.
Definition Node.hpp:502
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:504