MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Nodes::Generator::LogicContextGpu Class Reference

GPU-accelerated context for logic node callbacks. More...

#include <Logic.hpp>

+ Inheritance diagram for MayaFlux::Nodes::Generator::LogicContextGpu:
+ Collaboration diagram for MayaFlux::Nodes::Generator::LogicContextGpu:

Public Member Functions

 LogicContextGpu (double value, LogicMode mode, LogicOperator operator_type, const std::deque< bool > &history, double threshold, bool edge_detected, EdgeType edge_type, const std::vector< double > &inputs, std::span< const float > gpu_data)
 
- Public Member Functions inherited from MayaFlux::Nodes::Generator::LogicContext
 LogicContext (double value, LogicMode mode, LogicOperator operator_type, const std::deque< bool > &history, double threshold, bool edge_detected=false, EdgeType edge_type=EdgeType::BOTH, const std::vector< double > &inputs={})
 Constructs a LogicContext with complete state information.
 
LogicMode get_mode () const
 
LogicOperator get_operator () const
 
const std::deque< bool > & get_history () const
 
double get_threshold () const
 
bool is_edge_detected () const
 
EdgeType get_edge_type () const
 
const std::vector< double > & get_inputs () const
 
const double & get_value () const
 
bool as_bool () const
 
- Public Member Functions inherited from MayaFlux::Nodes::NodeContext
virtual ~NodeContext ()=default
 
template<typename T >
T * as ()
 Safely cast to a derived context type.
 
- Public Member Functions inherited from MayaFlux::Nodes::GpuVectorData
 GpuVectorData ()=default
 
 GpuVectorData (std::span< const float > data)
 
std::span< const float > gpu_data () const
 
size_t gpu_data_size () const
 
bool has_gpu_data () const
 

Additional Inherited Members

- Public Attributes inherited from MayaFlux::Nodes::NodeContext
double value
 Current sample value.
 
std::string type_id
 Type identifier for runtime type checking.
 
- Protected Member Functions inherited from MayaFlux::Nodes::NodeContext
 NodeContext (double value, const std::string &type)
 Protected constructor for NodeContext.
 
- Protected Attributes inherited from MayaFlux::Nodes::GpuVectorData
std::span< const float > m_gpu_data
 

Detailed Description

GPU-accelerated context for logic node callbacks.

Definition at line 121 of file Logic.hpp.


The documentation for this class was generated from the following file: