From 56e9b1bb37569ef087fe20ae55535c8e52eec2c1 Mon Sep 17 00:00:00 2001 From: samcake Date: Fri, 19 May 2017 18:46:19 -0700 Subject: [PATCH] Adding the populated counter --- libraries/gpu/src/gpu/Context.cpp | 4 ++++ libraries/gpu/src/gpu/Context.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/libraries/gpu/src/gpu/Context.cpp b/libraries/gpu/src/gpu/Context.cpp index 9f83e1250c..140019f96f 100644 --- a/libraries/gpu/src/gpu/Context.cpp +++ b/libraries/gpu/src/gpu/Context.cpp @@ -310,3 +310,7 @@ uint32_t Context::getTexturePendingGPUTransferCount() { Size Context::getTexturePendingGPUTransferMemSize() { return Backend::texturePendingGPUTransferMemSize.getValue(); } + +Size Context::getTextureResourcePopulatedGPUMemSize() { + return Backend::textureResourcePopulatedGPUMemSize.getValue(); +} diff --git a/libraries/gpu/src/gpu/Context.h b/libraries/gpu/src/gpu/Context.h index 4de6631eb1..de818ddcb0 100644 --- a/libraries/gpu/src/gpu/Context.h +++ b/libraries/gpu/src/gpu/Context.h @@ -113,6 +113,7 @@ public: static ContextMetricCount texturePendingGPUTransferCount; static ContextMetricSize texturePendingGPUTransferMemSize; + static ContextMetricSize textureResourcePopulatedGPUMemSize; protected: @@ -243,6 +244,8 @@ public: static uint32_t getTexturePendingGPUTransferCount(); static Size getTexturePendingGPUTransferMemSize(); + static Size getTextureResourcePopulatedGPUMemSize(); + protected: Context(const Context& context);