MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Portal::Forma::MappedState< T > Struct Template Reference

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 }
 
value {}
 
Version version { 0 }
 

Detailed Description

template<typename T>
struct MayaFlux::Portal::Forma::MappedState< T >

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.

Template Parameters
TValue 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.


The documentation for this struct was generated from the following files: