diff --git a/Hydrogent/interface/HnRenderDelegate.hpp b/Hydrogent/interface/HnRenderDelegate.hpp index 716a22a3..1c18f861 100644 --- a/Hydrogent/interface/HnRenderDelegate.hpp +++ b/Hydrogent/interface/HnRenderDelegate.hpp @@ -78,6 +78,9 @@ struct HnRenderDelegateMemoryStats /// The number of allcations. Uint32 AllocationCount = 0; + + /// The amount of index data pending upload, in bytes. + Uint64 PendingDataSize = 0; }; /// Index pool usage statistics. IndexPoolUsage IndexPool; @@ -96,6 +99,9 @@ struct HnRenderDelegateMemoryStats /// The number of vertices allocated from the pool. Uint64 AllocatedVertexCount = 0; + + /// The amount vertex data pending upload, in bytes. + Uint64 PendingDataSize = 0; }; /// Vertex pool usage statistics. VertexPoolUsage VertexPool; diff --git a/Hydrogent/src/HnRenderDelegate.cpp b/Hydrogent/src/HnRenderDelegate.cpp index 13529012..0502ec3d 100644 --- a/Hydrogent/src/HnRenderDelegate.cpp +++ b/Hydrogent/src/HnRenderDelegate.cpp @@ -825,11 +825,13 @@ HnRenderDelegateMemoryStats HnRenderDelegate::GetMemoryStats() const MemoryStats.IndexPool.CommittedSize = IndexUsage.CommittedSize; MemoryStats.IndexPool.UsedSize = IndexUsage.UsedSize; MemoryStats.IndexPool.AllocationCount = IndexUsage.AllocationCount; + MemoryStats.IndexPool.PendingDataSize = m_GeometryPool->GetPendingIndexDataSize(); MemoryStats.VertexPool.CommittedSize = VertexUsage.CommittedMemorySize; MemoryStats.VertexPool.UsedSize = VertexUsage.UsedMemorySize; MemoryStats.VertexPool.AllocationCount = VertexUsage.AllocationCount; MemoryStats.VertexPool.AllocatedVertexCount = VertexUsage.AllocatedVertexCount; + MemoryStats.VertexPool.PendingDataSize = m_GeometryPool->GetPendingVertexDataSize(); MemoryStats.Atlas.CommittedSize = AtlasUsage.CommittedSize; MemoryStats.Atlas.AllocationCount = AtlasUsage.AllocationCount;