From fd150e9eb3ba16a0df0f817cc00087827e49efd7 Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Mon, 30 Nov 2015 15:28:25 -0700 Subject: debug_report: Add DebugReportMessage function --- include/vulkan/vk_layer.h | 1 + include/vulkan/vk_lunarg_debug_report.h | 11 +++++++++++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h index 5ac2f7ed..401ca866 100644 --- a/include/vulkan/vk_layer.h +++ b/include/vulkan/vk_layer.h @@ -176,6 +176,7 @@ typedef struct VkLayerInstanceDispatchTable_ PFN_vkGetPhysicalDeviceSurfacePresentModesKHR GetPhysicalDeviceSurfacePresentModesKHR; PFN_vkCreateDebugReportCallbackLUNARG CreateDebugReportCallbackLUNARG; PFN_vkDestroyDebugReportCallbackLUNARG DestroyDebugReportCallbackLUNARG; + PFN_vkDebugReportMessageLUNARG DebugReportMessageLUNARG; #ifdef VK_USE_PLATFORM_MIR_KHR PFN_vkCreateMirSurfaceKHR CreateMirSurfaceKHR; PFN_vkGetPhysicalDeviceMirPresentationSupportKHR GetPhysicalDeviceMirPresentationSupportKHR; diff --git a/include/vulkan/vk_lunarg_debug_report.h b/include/vulkan/vk_lunarg_debug_report.h index 316476e9..c8d47cdc 100644 --- a/include/vulkan/vk_lunarg_debug_report.h +++ b/include/vulkan/vk_lunarg_debug_report.h @@ -138,6 +138,7 @@ typedef struct VkDebugReportCallbackCreateInfoLUNARG { typedef VkResult (VKAPI_PTR *PFN_vkCreateDebugReportCallbackLUNARG)(VkInstance instance, VkDebugReportCallbackCreateInfoLUNARG *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkDebugReportCallbackLUNARG* pCallback); typedef void (VKAPI_PTR *PFN_vkDestroyDebugReportCallbackLUNARG)(VkInstance instance, VkDebugReportCallbackLUNARG callback, const VkAllocationCallbacks *pAllocator); +typedef void (VKAPI_PTR *PFN_vkDebugReportMessageLUNARG)(VkInstance instance, VkDebugReportFlagsLUNARG msgFlags, VkDebugReportObjectTypeLUNARG objType, uint64_t srcObject, size_t location, int32_t msgCode, const char *pLayerPrefix, const char *pMsg); #ifdef VK_PROTOTYPES @@ -152,6 +153,16 @@ VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackLUNARG( VkInstance instance, VkDebugReportCallbackLUNARG callback, const VkAllocationCallbacks* pAllocator); + +VKAPI_ATTR void VKAPI_CALL vkDebugReportMessageLUNARG( + VkInstance instance, + VkDebugReportFlagsLUNARG flags, + VkDebugReportObjectTypeLUNARG objType, + uint64_t object, + size_t location, + int32_t msgCode, + const char* pLayerPrefix, + const char* pMsg); #endif // VK_PROTOTYPES #ifdef __cplusplus -- cgit v1.2.3