|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
Value carrier for a Mapped primitive. More...
#include <Mapped.hpp>
Collaboration diagram for MayaFlux::Portal::Forma::MappedState< T >:Public Member Functions | |
| void | write (T v) |
Public Attributes | |
| uint32_t | id { 0 } |
| T | value {} |
| Version | version { 0 } |
Value carrier for a Mapped primitive.
Owns the current value and a version counter. Any writer increments version after updating value. The graphics tick reads both and decides whether to regenerate geometry.
Exposed as shared_ptr<MappedState<T>> so any external system — a node output reader, a buffer writer, a scheduler callback — can hold a reference and read or write without knowing about the primitive.
| T | Value type. float for a single continuous parameter, glm::vec2 for a 2D position, any plain data type. |
Definition at line 36 of file Mapped.hpp.