[general] moving ios and android project under ./platform folder
This commit is contained in:
37
include/mbgl/gfx/rendering_stats.hpp
Normal file
37
include/mbgl/gfx/rendering_stats.hpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#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;
|
||||
|
||||
RenderingStats& operator+=(const RenderingStats& right);
|
||||
};
|
||||
|
||||
inline RenderingStats& RenderingStats::operator+=(const RenderingStats& r) {
|
||||
numDrawCalls += r.numDrawCalls;
|
||||
numActiveTextures += r.numActiveTextures;
|
||||
numCreatedTextures += r.numCreatedTextures;
|
||||
numBuffers += r.numBuffers;
|
||||
numFrameBuffers += r.numFrameBuffers;
|
||||
|
||||
memTextures += r.memTextures;
|
||||
memIndexBuffers += r.memIndexBuffers;
|
||||
memVertexBuffers += r.memVertexBuffers;
|
||||
return *this;
|
||||
}
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace mbgl
|
||||
Reference in New Issue
Block a user