MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ NodeCapability

Bitmask flags declaring what data shapes a node's context can produce.

SCALAR is guaranteed by the Node interface itself (process_sample always returns double). All other flags are opt-in: a node sets them when its NodeContext also derives from the corresponding GpuContext mixin (GpuVectorData, GpuMatrixData, GpuStructuredData).

Flags are combinable; a node may expose multiple shapes simultaneously.

Example:

// Node whose context derives from GpuVectorData:
uint32_t node_capabilities() const override {
}
@ VECTOR
Context also implements GpuVectorData.
Definition NodeSpec.hpp:106
@ SCALAR
Single double from process_sample — always present.
Definition NodeSpec.hpp:105
Enumerator
SCALAR 

Single double from process_sample — always present.

VECTOR 

Context also implements GpuVectorData.

MATRIX 

Context also implements GpuMatrixData.

STRUCTURED 

Context also implements GpuStructuredData.

Definition at line 104 of file NodeSpec.hpp.

104 : uint8_t {
105 SCALAR = 1U << 0, ///< Single double from process_sample — always present
106 VECTOR = 1U << 1, ///< Context also implements GpuVectorData
107 MATRIX = 1U << 2, ///< Context also implements GpuMatrixData
108 STRUCTURED = 1U << 3, ///< Context also implements GpuStructuredData
109};
@ STRUCTURED
Context also implements GpuStructuredData.
Definition NodeSpec.hpp:108
@ MATRIX
Context also implements GpuMatrixData.
Definition NodeSpec.hpp:107