aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-09-04 13:52:24 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-09-10 10:40:33 -0600
commitab32819639c274019fd17736f8341cc04a5e6d7b (patch)
tree0c92b693e082a2d6efe866bfd081f234d38d0a5e /include
parentbf117528ff5799723fd83244b6702de1c4087f67 (diff)
downloadusermoji-ab32819639c274019fd17736f8341cc04a5e6d7b.tar.xz
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.
Diffstat (limited to 'include')
-rw-r--r--include/vk_debug_report_lunarg.h2
1 files changed, 1 insertions, 1 deletions
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,