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

Method OnInsert

Source/Engine/Renderer/ShadowsPass.cpp:427–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425};
426
427void ShadowsAtlasRectTile::OnInsert(ShadowsCustomBuffer* buffer, bool isStatic)
428{
429 IsStatic = isStatic;
430 const int32 pixels = (int32)Width * (int32)Height;
431 if (isStatic)
432 buffer->StaticAtlasPixelsUsed += pixels;
433 else
434 buffer->AtlasPixelsUsed += pixels;
435}
436
437void ShadowsAtlasRectTile::OnFree(ShadowsCustomBuffer* buffer)
438{

Callers 2

InsertMethod · 0.45
InsertFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected