aboutsummaryrefslogtreecommitdiff
path: root/loader/loader.h
diff options
context:
space:
mode:
authorIan Elliott <ianelliott@google.com>2016-03-31 10:48:19 -0600
committerJon Ashburn <jon@lunarg.com>2016-04-01 12:14:32 -0600
commite6ae483aedfb9f0e64697d4df0ff53519dd19957 (patch)
treeb8f585761772875b90f86fc5822a5becf51c9c36 /loader/loader.h
parent7c50ad62d53a2271ee638a68dd20fc7c00501c6c (diff)
downloadusermoji-e6ae483aedfb9f0e64697d4df0ff53519dd19957.tar.xz
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.
Diffstat (limited to 'loader/loader.h')
-rw-r--r--loader/loader.h4
1 files changed, 3 insertions, 1 deletions
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;