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 332 of file Node.hpp.

333 {
334 m_gpu_compatible = compatible;
335 if (compatible) {
336 m_timing_rate = m_frame_rate; // Use frame rate for timing calculations if GPU compatible
337 } else {
338 m_timing_rate = m_sample_rate; // Use sample rate for timing calculations if not GPU compatible
339 }
340 }
uint32_t m_sample_rate
Sample rate for audio processing, used for normalization.
Definition Node.hpp:451
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:406
uint32_t m_frame_rate
Frame rate for time-based processing, used for normalization.
Definition Node.hpp:453
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:455