MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetSummary

Method GetSummary

TombEngine/Renderer/Graphics/VRAMTracker.h:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 std::string GetSummary() const
55 {
56 return fmt::format("VRAM usage: {:.1f} MB total, textures: {:.1f} MB, RT: {:.1f} MB, VB: {:.1f} MB, IB: {:.1f} MB.",
57 ToMegabytes(GetTotal()),
58 ToMegabytes(GetCategory(VRAMCategory::Texture)),
59 ToMegabytes(GetCategory(VRAMCategory::RenderTarget)),
60 ToMegabytes(GetCategory(VRAMCategory::VertexBuffer)),
61 ToMegabytes(GetCategory(VRAMCategory::IndexBuffer)));
62 }
63
64 static int GetDXGIFormatBytesPerPixel(DXGI_FORMAT format)
65 {

Callers 1

InitializeMethod · 0.80

Calls 2

ToMegabytesFunction · 0.85
formatFunction · 0.50

Tested by

no test coverage detected