This went undetected by the validation layer because the tests were also leaking the Vulkan instance and device, so they were never destroyed, and the validation check never kicked in. So fix the leaking tests too.
This also fixes an occasional crash from a driver trying to use a resource after the tests had exited main(), because the HgiVulkan leak also meant no synchronization.
Added some more buffer naming to help debug the leak and included it in the PR as it's useful for debugging.
Fixes Issue(s)
N/A
[X] I have verified that all unit tests pass with the proposed changes
[X] I have submitted a signed Contributor License Agreement
Description of Change(s)
This went undetected by the validation layer because the tests were also leaking the Vulkan instance and device, so they were never destroyed, and the validation check never kicked in. So fix the leaking tests too.
This also fixes an occasional crash from a driver trying to use a resource after the tests had exited main(), because the HgiVulkan leak also meant no synchronization.
Added some more buffer naming to help debug the leak and included it in the PR as it's useful for debugging.
Fixes Issue(s)