From fb062bb23e66af3d5a889b767aae380884b259e5 Mon Sep 17 00:00:00 2001 From: Mikko Pulkki Date: Tue, 15 Oct 2019 12:09:21 +0300 Subject: [render-test] Add resource usage tracking to gfx context --- include/mbgl/gfx/rendering_stats.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/mbgl/gfx/rendering_stats.hpp (limited to 'include') diff --git a/include/mbgl/gfx/rendering_stats.hpp b/include/mbgl/gfx/rendering_stats.hpp new file mode 100644 index 0000000000..8fb01a5825 --- /dev/null +++ b/include/mbgl/gfx/rendering_stats.hpp @@ -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 \ No newline at end of file -- cgit v1.2.1