VulkanTools icon indicating copy to clipboard operation
VulkanTools copied to clipboard

feature request: api dump pointer tagging

Open zmike opened this issue 2 years ago • 1 comments

Currently with VK_APIDUMP_NO_ADDR=true all the pointers become static string values. It'd be awesome if there was an option where these strings could remain static but still be tracked. For example, VkCommandBuffer = address for the first-seen cmdbuf would become VkCommandBuffer = cmdbuf1, where all instances of that cmdbuf's address are translated to cmdbuf1 such that across app runs the output is the same. Indexing pointers like this would enable object comparisons across app runs.

zmike avatar Oct 05 '23 13:10 zmike

That would be nice, but it comes with complexity. Every single object type would have its own index & map of created objects, and every use would need to access the map to figure out if its an existing handle or a new one. Not a terribly hard problem, but also not 'easy'. Not to mention that this really only works in single threaded applications. Anything with multiple threads means those counters are non deterministic.

charles-lunarg avatar Oct 22 '23 23:10 charles-lunarg