Adding the populated counter

This commit is contained in:
samcake 2017-05-19 18:46:19 -07:00
parent c5b5aa93b1
commit 56e9b1bb37
2 changed files with 7 additions and 0 deletions

View file

@ -310,3 +310,7 @@ uint32_t Context::getTexturePendingGPUTransferCount() {
Size Context::getTexturePendingGPUTransferMemSize() {
return Backend::texturePendingGPUTransferMemSize.getValue();
}
Size Context::getTextureResourcePopulatedGPUMemSize() {
return Backend::textureResourcePopulatedGPUMemSize.getValue();
}

View file

@ -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);