| 29 | } |
| 30 | |
| 31 | void DebugName::Set(VkObjectType type, uint64_t handle, char const * name) |
| 32 | { |
| 33 | if (vkSetDebugUtilsObjectNameEXT == nullptr) |
| 34 | return; |
| 35 | |
| 36 | VkDebugUtilsObjectNameInfoEXT const info = {.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT, |
| 37 | .pNext = nullptr, |
| 38 | .objectType = type, |
| 39 | .objectHandle = handle, |
| 40 | .pObjectName = name}; |
| 41 | CHECK_VK_CALL(vkSetDebugUtilsObjectNameEXT(m_device, &info)); |
| 42 | } |
| 43 | |
| 44 | std::string GetVulkanResultString(VkResult result) |
| 45 | { |
nothing calls this directly
no test coverage detected