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

Method EnsureCapacity

Source/Engine/Core/Collections/Sorting.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void Sorting::SortingStack::EnsureCapacity(int32 minCapacity)
48{
49 if (Capacity >= minCapacity)
50 return;
51 int32 num = Capacity == 0 ? 64 : Capacity * 2;
52 if (num < minCapacity)
53 num = minCapacity;
54 SetCapacity(num);
55}

Callers 15

generateChartsMethod · 0.45
generateHemispheresMethod · 0.45
GetMaterialsMethod · 0.45
AddMethod · 0.45
UpdateMethod · 0.45
UpdateGPUFunction · 0.45
DeserializeMethod · 0.45
GenerateMethod · 0.45
loadMethod · 0.45
loadAssetMethod · 0.45
RebuildContextFunction · 0.45

Calls 1

SetCapacityFunction · 0.70

Tested by

no test coverage detected