MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UpdateLayout

Method UpdateLayout

Source/Engine/Particles/ParticlesData.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void ParticleLayout::UpdateLayout()
36{
37 Size = 0;
38 for (int32 i = 0; i < Attributes.Count(); i++)
39 {
40 Attributes[i].Offset = Size;
41 Size += Attributes[i].GetSize();
42 }
43}
44
45int32 ParticleLayout::FindAttribute(const StringView& name) const
46{

Callers 1

LoadMethod · 0.45

Calls 2

CountMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected