[render-test] Add resource usage tracking to gfx context
This commit is contained in:
committed by
Mikko Pulkki
parent
c8576e089f
commit
fb062bb23e
22
include/mbgl/gfx/rendering_stats.hpp
Normal file
22
include/mbgl/gfx/rendering_stats.hpp
Normal 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
|
||||
Reference in New Issue
Block a user