Rebel Fork Framework
Urho3D::ParticleGraphBufferLayout Class Reference

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 ParticleGraphSpanoperator[] (unsigned index) const
 Get span by index.
 

Private Attributes

ea::vector< PinSpanspans_
 Allocated spans.
 
unsigned position_ {}
 Size of required attribute buffer.
 
unsigned capacity_ {}
 Maximal number of particles.
 

Detailed Description

Memory layout for intermediate values.


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