From 6fed229bcddf5c07eefc5a0d42841b7827189d0b Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Wed, 2 Dec 2015 15:29:33 -0700 Subject: loader: utils for managing debug report events Now need to create & destroy callbacks as part of vkCreateInstance, so refactor debug_report entries into API function and work function that can be used from the loader. Conflicts: loader/debug_report.c --- loader/debug_report.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'loader/debug_report.h') diff --git a/loader/debug_report.h b/loader/debug_report.h index 1d812756..baaae86f 100644 --- a/loader/debug_report.h +++ b/loader/debug_report.h @@ -123,3 +123,24 @@ VKAPI_ATTR void VKAPI_CALL loader_DebugReportMessage( int32_t msgCode, const char* pLayerPrefix, const char* pMsg); + +VkResult util_CreateDebugReportCallback( + struct loader_instance *inst, + VkDebugReportCallbackCreateInfoLUNARG *pCreateInfo, + const VkAllocationCallbacks *pAllocator, + VkDebugReportCallbackLUNARG callback); + +void util_DestroyDebugReportCallback( + struct loader_instance *inst, + VkDebugReportCallbackLUNARG callback, + const VkAllocationCallbacks *pAllocator); + +VkBool32 util_DebugReportMessage( + const struct loader_instance* inst, + VkFlags msgFlags, + VkDebugReportObjectTypeLUNARG objectType, + uint64_t srcObject, + size_t location, + int32_t msgCode, + const char* pLayerPrefix, + const char* pMsg); -- cgit v1.2.3