debug_report: Rename VkDbgMsgCallback object
diff --git a/layers/device_limits.cpp b/layers/device_limits.cpp
index aba2e3e..c4e67c2 100644
--- a/layers/device_limits.cpp
+++ b/layers/device_limits.cpp
@@ -58,7 +58,7 @@
// This struct will be stored in a map hashed by the dispatchable object
struct layer_data {
debug_report_data *report_data;
- std::vector<VkDbgMsgCallback> logging_callback;
+ std::vector<VkDebugReportCallbackLUNARG> logging_callback;
VkLayerDispatchTable* device_dispatch_table;
VkLayerInstanceDispatchTable* instance_dispatch_table;
devExts device_extensions;
@@ -105,7 +105,7 @@
uint32_t debug_action = 0;
FILE *log_output = NULL;
const char *option_str;
- VkDbgMsgCallback callback;
+ VkDebugReportCallbackLUNARG callback;
// initialize DeviceLimits options
report_flags = getLayerOptionFlags("DeviceLimitsReportFlags", 0);
getLayerOptionEnum("DeviceLimitsDebugAction", (uint32_t *) &debug_action);
@@ -190,7 +190,7 @@
// Clean up logging callback, if any
while (my_data->logging_callback.size() > 0) {
- VkDbgMsgCallback callback = my_data->logging_callback.back();
+ VkDebugReportCallbackLUNARG callback = my_data->logging_callback.back();
layer_destroy_msg_callback(my_data->report_data, callback);
my_data->logging_callback.pop_back();
}
@@ -555,7 +555,7 @@
VkFlags msgFlags,
const PFN_vkDbgMsgCallback pfnMsgCallback,
void* pUserData,
- VkDbgMsgCallback* pMsgCallback)
+ VkDebugReportCallbackLUNARG* pMsgCallback)
{
layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
VkResult res = my_data->instance_dispatch_table->DbgCreateMsgCallback(instance, msgFlags, pfnMsgCallback, pUserData, pMsgCallback);
@@ -567,7 +567,7 @@
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkDbgDestroyMsgCallback(
VkInstance instance,
- VkDbgMsgCallback msgCallback)
+ VkDebugReportCallbackLUNARG msgCallback)
{
layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
VkResult res = my_data->instance_dispatch_table->DbgDestroyMsgCallback(instance, msgCallback);
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index a9f30fb..5ad5ee4 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -87,7 +87,7 @@
struct layer_data {
debug_report_data* report_data;
- std::vector<VkDbgMsgCallback> logging_callback;
+ std::vector<VkDebugReportCallbackLUNARG> logging_callback;
VkLayerDispatchTable* device_dispatch_table;
VkLayerInstanceDispatchTable* instance_dispatch_table;
devExts device_extensions;
@@ -2560,7 +2560,7 @@
uint32_t debug_action = 0;
FILE *log_output = NULL;
const char *option_str;
- VkDbgMsgCallback callback;
+ VkDebugReportCallbackLUNARG callback;
// initialize DrawState options
report_flags = getLayerOptionFlags("DrawStateReportFlags", 0);
getLayerOptionEnum("DrawStateDebugAction", (uint32_t *) &debug_action);
@@ -2616,7 +2616,7 @@
// Clean up logging callback, if any
while (my_data->logging_callback.size() > 0) {
- VkDbgMsgCallback callback = my_data->logging_callback.back();
+ VkDebugReportCallbackLUNARG callback = my_data->logging_callback.back();
layer_destroy_msg_callback(my_data->report_data, callback);
my_data->logging_callback.pop_back();
}
@@ -5414,7 +5414,7 @@
VkFlags msgFlags,
const PFN_vkDbgMsgCallback pfnMsgCallback,
void* pUserData,
- VkDbgMsgCallback* pMsgCallback)
+ VkDebugReportCallbackLUNARG* pMsgCallback)
{
layer_data* my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
VkResult res = my_data->instance_dispatch_table->DbgCreateMsgCallback(instance, msgFlags, pfnMsgCallback, pUserData, pMsgCallback);
@@ -5426,7 +5426,7 @@
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkDbgDestroyMsgCallback(
VkInstance instance,
- VkDbgMsgCallback msgCallback)
+ VkDebugReportCallbackLUNARG msgCallback)
{
layer_data* my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
VkResult res = my_data->instance_dispatch_table->DbgDestroyMsgCallback(instance, msgCallback);
diff --git a/layers/generic.h b/layers/generic.h
index 2eb3eec..7a145d7 100644
--- a/layers/generic.h
+++ b/layers/generic.h
@@ -36,7 +36,7 @@
// The following is for logging error messages:
struct layer_data {
debug_report_data *report_data;
- VkDbgMsgCallback logging_callback;
+ VkDebugReportCallbackLUNARG logging_callback;
layer_data() :
report_data(nullptr),
diff --git a/layers/image.cpp b/layers/image.cpp
index 2156c5f..e489286 100644
--- a/layers/image.cpp
+++ b/layers/image.cpp
@@ -53,7 +53,7 @@
struct layer_data {
debug_report_data *report_data;
- vector<VkDbgMsgCallback> logging_callback;
+ vector<VkDebugReportCallbackLUNARG> logging_callback;
VkLayerDispatchTable* device_dispatch_table;
VkLayerInstanceDispatchTable *instance_dispatch_table;
VkPhysicalDevice physicalDevice;
@@ -74,7 +74,7 @@
static void InitImage(layer_data *data, const VkAllocationCallbacks *pAllocator)
{
- VkDbgMsgCallback callback;
+ VkDebugReportCallbackLUNARG callback;
uint32_t report_flags = getLayerOptionFlags("ImageReportFlags", 0);
uint32_t debug_action = 0;
@@ -99,7 +99,7 @@
VkFlags msgFlags,
const PFN_vkDbgMsgCallback pfnMsgCallback,
void* pUserData,
- VkDbgMsgCallback* pMsgCallback)
+ VkDebugReportCallbackLUNARG* pMsgCallback)
{
layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
VkResult res = my_data->instance_dispatch_table->DbgCreateMsgCallback(instance, msgFlags, pfnMsgCallback, pUserData, pMsgCallback);
@@ -111,7 +111,7 @@
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkDbgDestroyMsgCallback(
VkInstance instance,
- VkDbgMsgCallback msgCallback)
+ VkDebugReportCallbackLUNARG msgCallback)
{
layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
VkResult res = my_data->instance_dispatch_table->DbgDestroyMsgCallback(instance, msgCallback);
@@ -144,7 +144,7 @@
// Clean up logging callback, if any
while (my_data->logging_callback.size() > 0) {
- VkDbgMsgCallback callback = my_data->logging_callback.back();
+ VkDebugReportCallbackLUNARG callback = my_data->logging_callback.back();
layer_destroy_msg_callback(my_data->report_data, callback);
my_data->logging_callback.pop_back();
}
diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp
index cf889f6..bd65bcb 100644
--- a/layers/mem_tracker.cpp
+++ b/layers/mem_tracker.cpp
@@ -54,7 +54,7 @@
struct layer_data {
debug_report_data *report_data;
- std::vector<VkDbgMsgCallback> logging_callback;
+ std::vector<VkDebugReportCallbackLUNARG> logging_callback;
VkLayerDispatchTable *device_dispatch_table;
VkLayerInstanceDispatchTable *instance_dispatch_table;
VkBool32 wsi_enabled;
@@ -1001,7 +1001,7 @@
uint32_t debug_action = 0;
FILE *log_output = NULL;
const char *option_str;
- VkDbgMsgCallback callback;
+ VkDebugReportCallbackLUNARG callback;
// initialize MemTracker options
report_flags = getLayerOptionFlags("MemTrackerReportFlags", 0);
getLayerOptionEnum("MemTrackerDebugAction", (uint32_t *) &debug_action);
@@ -1042,7 +1042,7 @@
// Clean up logging callback, if any
while (my_data->logging_callback.size() > 0) {
- VkDbgMsgCallback callback = my_data->logging_callback.back();
+ VkDebugReportCallbackLUNARG callback = my_data->logging_callback.back();
layer_destroy_msg_callback(my_data->report_data, callback);
my_data->logging_callback.pop_back();
}
@@ -2562,11 +2562,11 @@
}
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkDbgCreateMsgCallback(
- VkInstance instance,
- VkFlags msgFlags,
- const PFN_vkDbgMsgCallback pfnMsgCallback,
- void *pUserData,
- VkDbgMsgCallback *pMsgCallback)
+ VkInstance instance,
+ VkFlags msgFlags,
+ const PFN_vkDbgMsgCallback pfnMsgCallback,
+ void *pUserData,
+ VkDebugReportCallbackLUNARG *pMsgCallback)
{
layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
VkLayerInstanceDispatchTable *pTable = my_data->instance_dispatch_table;
@@ -2579,7 +2579,7 @@
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkDbgDestroyMsgCallback(
VkInstance instance,
- VkDbgMsgCallback msgCallback)
+ VkDebugReportCallbackLUNARG msgCallback)
{
layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
VkLayerInstanceDispatchTable *pTable = my_data->instance_dispatch_table;
diff --git a/layers/object_track.h b/layers/object_track.h
index 7c0ea6d..1410151 100644
--- a/layers/object_track.h
+++ b/layers/object_track.h
@@ -75,7 +75,7 @@
struct layer_data {
debug_report_data *report_data;
//TODO: put instance data here
- VkDbgMsgCallback logging_callback;
+ VkDebugReportCallbackLUNARG logging_callback;
bool wsi_enabled;
bool objtrack_extensions_enabled;
diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp
index 62fd2a7..42068a9 100644
--- a/layers/param_checker.cpp
+++ b/layers/param_checker.cpp
@@ -48,7 +48,7 @@
struct layer_data {
debug_report_data *report_data;
- std::vector<VkDbgMsgCallback> logging_callback;
+ std::vector<VkDebugReportCallbackLUNARG> logging_callback;
layer_data() :
report_data(nullptr)
@@ -86,7 +86,7 @@
static void InitParamChecker(layer_data *data, const VkAllocationCallbacks *pAllocator)
{
- VkDbgMsgCallback callback;
+ VkDebugReportCallbackLUNARG callback;
uint32_t report_flags = getLayerOptionFlags("ParamCheckerReportFlags", 0);
uint32_t debug_action = 0;
@@ -111,7 +111,7 @@
VkFlags msgFlags,
const PFN_vkDbgMsgCallback pfnMsgCallback,
void* pUserData,
- VkDbgMsgCallback* pMsgCallback)
+ VkDebugReportCallbackLUNARG* pMsgCallback)
{
VkLayerInstanceDispatchTable *pTable = get_dispatch_table(pc_instance_table_map, instance);
VkResult result = pTable->DbgCreateMsgCallback(instance, msgFlags, pfnMsgCallback, pUserData, pMsgCallback);
@@ -127,7 +127,7 @@
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkDbgDestroyMsgCallback(
VkInstance instance,
- VkDbgMsgCallback msgCallback)
+ VkDebugReportCallbackLUNARG msgCallback)
{
VkLayerInstanceDispatchTable *pTable = get_dispatch_table(pc_instance_table_map, instance);
VkResult result = pTable->DbgDestroyMsgCallback(instance, msgCallback);
@@ -1759,7 +1759,7 @@
// Clean up logging callback, if any
layer_data *my_data = get_my_data_ptr(key, layer_data_map);
while (my_data->logging_callback.size() > 0) {
- VkDbgMsgCallback callback = my_data->logging_callback.back();
+ VkDebugReportCallbackLUNARG callback = my_data->logging_callback.back();
layer_destroy_msg_callback(my_data->report_data, callback);
my_data->logging_callback.pop_back();
}
diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp
index 08ee63d..4c41928 100644
--- a/layers/swapchain.cpp
+++ b/layers/swapchain.cpp
@@ -115,7 +115,7 @@
uint32_t debug_action = 0;
FILE *log_output = NULL;
const char *option_str;
- VkDbgMsgCallback callback;
+ VkDebugReportCallbackLUNARG callback;
// Initialize Swapchain options:
report_flags = getLayerOptionFlags("SwapchainReportFlags", 0);
@@ -209,7 +209,7 @@
// Clean up logging callback, if any
while (my_data->logging_callback.size() > 0) {
- VkDbgMsgCallback callback = my_data->logging_callback.back();
+ VkDebugReportCallbackLUNARG callback = my_data->logging_callback.back();
layer_destroy_msg_callback(my_data->report_data, callback);
my_data->logging_callback.pop_back();
}
@@ -1113,7 +1113,7 @@
return NULL;
}
-VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkDbgCreateMsgCallback(VkInstance instance, VkFlags msgFlags, const PFN_vkDbgMsgCallback pfnMsgCallback, void* pUserData, VkDbgMsgCallback* pMsgCallback)
+VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkDbgCreateMsgCallback(VkInstance instance, VkFlags msgFlags, const PFN_vkDbgMsgCallback pfnMsgCallback, void* pUserData, VkDebugReportCallbackLUNARG* pMsgCallback)
{
layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
VkResult result = my_data->instance_dispatch_table->DbgCreateMsgCallback(instance, msgFlags, pfnMsgCallback, pUserData, pMsgCallback);
@@ -1123,7 +1123,7 @@
return result;
}
-VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkDbgDestroyMsgCallback(VkInstance instance, VkDbgMsgCallback msgCallback)
+VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkDbgDestroyMsgCallback(VkInstance instance, VkDebugReportCallbackLUNARG msgCallback)
{
layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
VkResult result = my_data->instance_dispatch_table->DbgDestroyMsgCallback(instance, msgCallback);
diff --git a/layers/swapchain.h b/layers/swapchain.h
index c2ee487..d030a34 100644
--- a/layers/swapchain.h
+++ b/layers/swapchain.h
@@ -210,7 +210,7 @@
struct layer_data {
debug_report_data *report_data;
- std::vector<VkDbgMsgCallback> logging_callback;
+ std::vector<VkDebugReportCallbackLUNARG> logging_callback;
VkLayerDispatchTable* device_dispatch_table;
VkLayerInstanceDispatchTable* instance_dispatch_table;
// NOTE: The following are for keeping track of info that is used for
diff --git a/layers/threading.h b/layers/threading.h
index cbff088..24741dc 100644
--- a/layers/threading.h
+++ b/layers/threading.h
@@ -38,7 +38,7 @@
struct layer_data {
debug_report_data *report_data;
- VkDbgMsgCallback logging_callback;
+ VkDebugReportCallbackLUNARG logging_callback;
layer_data() :
report_data(nullptr),
diff --git a/layers/vk_layer_logging.h b/layers/vk_layer_logging.h
index 8a38d42..b603da8 100644
--- a/layers/vk_layer_logging.h
+++ b/layers/vk_layer_logging.h
@@ -152,7 +152,7 @@
VkFlags msgFlags,
const PFN_vkDbgMsgCallback pfnMsgCallback,
void *pUserData,
- VkDbgMsgCallback *pMsgCallback)
+ VkDebugReportCallbackLUNARG *pMsgCallback)
{
VkLayerDbgFunctionNode *pNewDbgFuncNode = (VkLayerDbgFunctionNode*)malloc(sizeof(VkLayerDbgFunctionNode));
if (!pNewDbgFuncNode)
@@ -160,7 +160,7 @@
// Handle of 0 is logging_callback so use allocated Node address as unique handle
if (!(*pMsgCallback))
- *pMsgCallback = (VkDbgMsgCallback) pNewDbgFuncNode;
+ *pMsgCallback = (VkDebugReportCallbackLUNARG) pNewDbgFuncNode;
pNewDbgFuncNode->msgCallback = *pMsgCallback;
pNewDbgFuncNode->pfnMsgCallback = pfnMsgCallback;
pNewDbgFuncNode->msgFlags = msgFlags;
@@ -181,7 +181,7 @@
static inline void layer_destroy_msg_callback(
debug_report_data *debug_data,
- VkDbgMsgCallback msg_callback)
+ VkDebugReportCallbackLUNARG msg_callback)
{
VkLayerDbgFunctionNode *pTrav = debug_data->g_pDbgFunctionHead;
VkLayerDbgFunctionNode *pPrev = pTrav;