summaryrefslogtreecommitdiff
path: root/include/mbgl/gfx/rendering_stats.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/gfx/rendering_stats.hpp')
-rw-r--r--include/mbgl/gfx/rendering_stats.hpp22
1 files changed, 22 insertions, 0 deletions
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