|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
GPU-compatible context for binary operation callbacks. More...
#include <NodeStructure.hpp>
Inheritance diagram for MayaFlux::Nodes::BinaryOpContextGpu:
Collaboration diagram for MayaFlux::Nodes::BinaryOpContextGpu:Public Member Functions | |
| BinaryOpContextGpu (double value, double lhs_value, double rhs_value, std::span< const float > gpu_data) | |
Public Member Functions inherited from MayaFlux::Nodes::BinaryOpContext | |
| BinaryOpContext (double value, double lhs_value, double rhs_value) | |
| Constructs a BinaryOpContext with the current operation state. | |
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::BinaryOpContext | |
| double | lhs_value |
| The value from the left-hand side node. | |
| double | rhs_value |
| The value from the right-hand side node. | |
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 |
GPU-compatible context for binary operation callbacks.
BinaryOpContextGpu extends BinaryOpContext and implements GpuVectorData to provide GPU-compatible data for binary operation callbacks. It includes the individual values from both the left and right nodes, as well as a span of float data that can be uploaded to the GPU for efficient processing.
This context enables GPU-accelerated callbacks to analyze and respond to binary operations in high-performance scenarios, such as:
Definition at line 257 of file NodeStructure.hpp.