From ab32819639c274019fd17736f8341cc04a5e6d7b Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Fri, 4 Sep 2015 13:52:24 -0600 Subject: layers: Add bailout flag to debug report callback Layer validation tests will deliberately induce errors that the validation layer should catch. In these cases we don't really want the layer to call down the chain once it's detected a failure. We can't know that in the layer so changing the return value on the callback from void to VkBool32 so that the callback can indicate if the call should continue or not. true = bail. That allows the call chain to execute normally, not segfault in the driver and allow the test to clean things up. --- include/vk_debug_report_lunarg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/vk_debug_report_lunarg.h b/include/vk_debug_report_lunarg.h index 7131ae3b..fb5033cf 100644 --- a/include/vk_debug_report_lunarg.h +++ b/include/vk_debug_report_lunarg.h @@ -116,7 +116,7 @@ typedef enum _DEBUG_REPORT_ERROR // ------------------------------------------------------------------------------------------------ // Vulkan function pointers -typedef void (*PFN_vkDbgMsgCallback)( +typedef VkBool32 (*PFN_vkDbgMsgCallback)( VkFlags msgFlags, VkDbgObjectType objType, uint64_t srcObject, -- cgit v1.2.3