Skip to content

Commit

Permalink
VertexPoolUsageStats: added operator +=
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Feb 13, 2024
1 parent b048988 commit 26c9841
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Graphics/GraphicsTools/interface/VertexPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ struct VertexPoolUsageStats

/// The number of allocations.
Uint32 AllocationCount = 0;

VertexPoolUsageStats& operator+=(const VertexPoolUsageStats& RHS)
{
TotalVertexCount += RHS.TotalVertexCount;
AllocatedVertexCount += RHS.AllocatedVertexCount;
CommittedMemorySize += RHS.CommittedMemorySize;
UsedMemorySize += RHS.UsedMemorySize;
AllocationCount += RHS.AllocationCount;
return *this;
}
};


Expand Down

0 comments on commit 26c9841

Please sign in to comment.