Automatically name image/buffer allocations

This commit is contained in:
Patrick Nicolas
2025-08-16 14:15:29 +02:00
parent dc04f7edcc
commit c15de9bf27
10 changed files with 75 additions and 62 deletions
+6
View File
@@ -131,6 +131,12 @@ public:
std::tie(resource, allocation) = traits::create(device, create_info, alloc_info);
vmaSetAllocationName(vk_allocator::instance(), allocation, name.c_str());
if (vk_allocator::instance().has_debug_utils)
device.setDebugUtilsObjectNameEXT(vk::DebugUtilsObjectNameInfoEXT{
.objectType = T::objectType,
.objectHandle = uint64_t(CType(*resource)),
.pObjectName = name.c_str(),
});
}
basic_allocation(const basic_allocation &) = delete;