Utility to name vulkan objects

This commit is contained in:
Patrick Nicolas
2025-06-12 15:46:37 +02:00
parent a6c20e9520
commit 5be3a8aef4
2 changed files with 51 additions and 0 deletions
+11
View File
@@ -224,3 +224,14 @@ uint32_t wivrn::wivrn_vk_bundle::get_memory_type(uint32_t type_bits, vk::MemoryP
}
throw std::runtime_error("Failed to get memory type");
}
void wivrn::wivrn_vk_bundle::name(vk::ObjectType type, uint64_t handle, const char * value)
{
if (not vk.has_EXT_debug_utils)
return;
device.setDebugUtilsObjectNameEXT(vk::DebugUtilsObjectNameInfoEXT{
.objectType = type,
.objectHandle = handle,
.pObjectName = value,
});
}