Rebel Fork Framework
|
Memory layout for intermediate values. More...
#include <Urho3D/Particles/ParticleGraphMemory.h>
Classes | |
struct | PinSpan |
Attribute layout. More... | |
Public Member Functions | |
void | Reset (unsigned capacity) |
Reset layout. | |
unsigned | Allocate (ParticleGraphContainerType container, VariantType type) |
Allocate span. Returns allocated span index. | |
unsigned | GetRequiredMemory () const |
Get amount of required memory to host intermediate values. | |
const ParticleGraphSpan & | operator[] (unsigned index) const |
Get span by index. | |
Private Attributes | |
ea::vector< PinSpan > | spans_ |
Allocated spans. | |
unsigned | position_ {} |
Size of required attribute buffer. | |
unsigned | capacity_ {} |
Maximal number of particles. | |
Memory layout for intermediate values.