From e6ae483aedfb9f0e64697d4df0ff53519dd19957 Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Thu, 31 Mar 2016 10:48:19 -0600 Subject: loader: vk{Create|Destroy}Instance can have multiple tmp callbacks During code review of the Android version of the temporary debug_report callbacks code, it was decided to allow an array of VkDebugReportCallbackCreateInfoEXT structs to be passed to vkCreateInstance(). This code implements that, using some new utility functions in order to help keep the code clean. --- loader/loader.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'loader/loader.h') diff --git a/loader/loader.h b/loader/loader.h index 244066c0..8a0d4cc8 100644 --- a/loader/loader.h +++ b/loader/loader.h @@ -293,7 +293,9 @@ struct loader_instance { bool debug_report_enabled; VkLayerDbgFunctionNode *DbgFunctionHead; - VkDebugReportCallbackCreateInfoEXT debugReportCreateInfo; + uint32_t num_tmp_callbacks; + VkDebugReportCallbackCreateInfoEXT *tmp_dbg_create_infos; + VkDebugReportCallbackEXT *tmp_callbacks; VkAllocationCallbacks alloc_callbacks; -- cgit v1.2.3