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

Method GetSize

Source/Engine/Particles/ParticlesData.cpp:10–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "Engine/Profiler/ProfilerMemory.h"
9
10int32 ParticleAttribute::GetSize() const
11{
12 switch (ValueType)
13 {
14 case ValueTypes::Float2:
15 return 8;
16 case ValueTypes::Float3:
17 return 12;
18 case ValueTypes::Float4:
19 return 16;
20 case ValueTypes::Float:
21 case ValueTypes::Int:
22 case ValueTypes::Uint:
23 return 4;
24 default:
25 return 0;
26 }
27}
28
29void ParticleLayout::Clear()
30{

Callers 4

DrawEmittersGPUFunction · 0.45
UpdateLayoutMethod · 0.45
ProcessModuleMethod · 0.45
InitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected