[render-test] Add resource usage tracking to gfx context

This commit is contained in:
Mikko Pulkki
2019-10-15 12:09:21 +03:00
committed by Mikko Pulkki
parent c8576e089f
commit fb062bb23e
16 changed files with 176 additions and 14 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
namespace mbgl {
namespace gfx {
struct RenderingStats {
RenderingStats() = default;
bool isZero() const;
int numDrawCalls;
int numActiveTextures;
int numCreatedTextures;
int numBuffers;
int numFrameBuffers;
int memTextures;
int memIndexBuffers;
int memVertexBuffers;
};
} // namespace gfx
} // namespace mbgl