GPU memory usage at runtime

Is it possible, at runtime, to get the total GPU memory, and currently used GPU memory on PC? Even better would be getting the GPU usage of meshes and textures.

You can do that using the memory profiler in the editor

I need this info at runtime.

My current solution is a native plugin that pulls the GPU memory totals from DXGI_ADAPTER_DESC.

Did you find another solution to this?

Would you mind posting your solution?

Thanks in advance!

We still use the same solution: RuntimeGraphicsInfo/RuntimeGraphicsInfo.Plugin/DirectX11.cpp at master · StrangeLoopGames/RuntimeGraphicsInfo · GitHub