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

◆ get_cell_stride_bytes()

size_t MayaFlux::Buffers::RelaxationGridBuffer::get_cell_stride_bytes ( ) const
inline

Size in bytes of one cell's state, fixed at construction.

A caller reinterpreting request_snapshot()/snapshot_source()'s raw bytes needs this to know how to slice them into individual cells: get_state_bytes() alone gives only the total, and state format genuinely varies by rule (a single float, a uint32 automaton state, a vec2 reaction-diffusion pair, or anything else a rule shader defines), so nothing here can infer it.

Definition at line 199 of file RelaxationGridBuffer.hpp.

199{ return m_cell_stride_bytes; }
size_t m_cell_stride_bytes
Size in bytes of one cell's state, fixed at construction.