aboutsummaryrefslogtreecommitdiff
path: root/layers/device_limits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/device_limits.cpp')
-rw-r--r--layers/device_limits.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/layers/device_limits.cpp b/layers/device_limits.cpp
index 30e57d44..37ad695f 100644
--- a/layers/device_limits.cpp
+++ b/layers/device_limits.cpp
@@ -52,11 +52,16 @@
#include "vk_layer_extension_utils.h"
#include "vk_layer_utils.h"
-typedef struct _layer_data {
+struct layer_data {
debug_report_data *report_data;
// TODO: put instance data here
VkDbgMsgCallback logging_callback;
-} layer_data;
+
+ layer_data() :
+ report_data(nullptr),
+ logging_callback(nullptr)
+ {};
+};
static std::unordered_map<void *, layer_data *> layer_data_map;
static device_table_map device_limits_device_table_map;