Skip to content

Commit 26c9841

Browse files
VertexPoolUsageStats: added operator +=
1 parent b048988 commit 26c9841

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Graphics/GraphicsTools/interface/VertexPool.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ struct VertexPoolUsageStats
104104

105105
/// The number of allocations.
106106
Uint32 AllocationCount = 0;
107+
108+
VertexPoolUsageStats& operator+=(const VertexPoolUsageStats& RHS)
109+
{
110+
TotalVertexCount += RHS.TotalVertexCount;
111+
AllocatedVertexCount += RHS.AllocatedVertexCount;
112+
CommittedMemorySize += RHS.CommittedMemorySize;
113+
UsedMemorySize += RHS.UsedMemorySize;
114+
AllocationCount += RHS.AllocationCount;
115+
return *this;
116+
}
107117
};
108118

109119

0 commit comments

Comments
 (0)