inexorgame / vulkan-renderer

A new 3D game engine for Linux and Windows using C++20 and Vulkan API 1.3, in very early but ongoing development
https://inexor.org
MIT License
756 stars 33 forks source link

Refactor internal gpu memory naming system and use JSON dump feature of VMA #510

Open IAmNotHanni opened 1 year ago

IAmNotHanni commented 1 year ago

Is your feature request related to a problem?

We are currently not using VMA's gpu memory dump and visualization feature.

Description

Vulkan Memory Allocator has a feature where you can assign internal debug names to resources (memory allocations) and then you can dump the gpu memory as JSON using vmaBuildStatsString. This can then be used to make an image as visualization of gpu memory using VMA's GpuMemDumpVis python script.

Don't mix this VMA naming system up with resource names in Vulkan validation layers.

Alternatives

None, as we should visualize our memory usage.

Affected Code

All of the code.

Operating System

All operating systems.

Additional Context

none