MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / calculateMemoryUsage

Method calculateMemoryUsage

Source/Engine/Graphics/Textures/GPUTexture.cpp:605–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605uint64 GPUTexture::calculateMemoryUsage() const
606{
607 return RenderTools::CalculateTextureMemoryUsage(Format(), Width(), Height(), Depth(), MipLevels()) * ArraySize();
608}
609
610String GPUTexture::ToString() const
611{

Callers

nothing calls this directly

Calls 6

MipLevelsFunction · 0.85
ArraySizeFunction · 0.85
FormatFunction · 0.70
WidthFunction · 0.70
HeightFunction · 0.70
DepthFunction · 0.70

Tested by

no test coverage detected