MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::GridCellData Concept Reference

Cell types a relaxation grid can be seeded with from a host callable. More...

#include <Evolve.hpp>

Concept definition

template<typename State>
concept MayaFlux::GridCellData = (ArithmeticData<State> || GlmVec2Type<State> || GlmVec4Type<State>)
&& (sizeof(State) % sizeof(uint32_t) == 0)
Cell types a relaxation grid can be seeded with from a host callable.
Definition Evolve.hpp:27

Detailed Description

Cell types a relaxation grid can be seeded with from a host callable.

Arithmetic scalars, two component vectors and four component vectors whose size is a multiple of four bytes, so sizeof matches the std430 array stride the rule and emit shaders read. Three component vectors are excluded: glm::vec3 is 12 bytes but strides 16 in an SSBO array, so a rule with such a cell declares a four component format instead.

Definition at line 27 of file Evolve.hpp.