From 8aac7a60074770a9ebcad182e9ddf2c33a6613d9 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Fri, 12 May 2017 18:00:31 -0500 Subject: [PATCH] Fix vkDebugMarkerSetObjectNameEXT for now. --- src/xenia/ui/vulkan/vulkan_device.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/xenia/ui/vulkan/vulkan_device.cc b/src/xenia/ui/vulkan/vulkan_device.cc index 9e03d2608..166a18b01 100644 --- a/src/xenia/ui/vulkan/vulkan_device.cc +++ b/src/xenia/ui/vulkan/vulkan_device.cc @@ -234,13 +234,19 @@ void VulkanDevice::ReleaseQueue(VkQueue queue) { void VulkanDevice::DbgSetObjectName(VkDevice device, uint64_t object, VkDebugReportObjectTypeEXT object_type, std::string name) { + // Check to see if the extension is even loaded + if (vkGetDeviceProcAddr(device, "vkDebugMarkerSetObjectNameEXT") == nullptr) { + return; + } + + // TODO(DrChat): fix linkage errors VkDebugMarkerObjectNameInfoEXT info; info.sType = VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT; info.pNext = nullptr; info.objectType = object_type; info.object = object; info.pObjectName = name.c_str(); - vkDebugMarkerSetObjectNameEXT(device, &info); + // vkDebugMarkerSetObjectNameEXT(device, &info); } void VulkanDevice::DbgSetObjectName(uint64_t object,