aboutsummaryrefslogtreecommitdiff
path: root/layers
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-10-06 17:05:21 -0600
committerJon Ashburn <jon@lunarg.com>2015-10-07 12:11:29 -0600
commit20f47da870a3327752674fa4ab06efe2278ef48a (patch)
treeb4a0020a8388082eff5be22fb146a7840c0de563 /layers
parent7515c649ab733484176f7601780f0469ff871ae4 (diff)
downloadusermoji-20f47da870a3327752674fa4ab06efe2278ef48a.tar.xz
layers: Add support for debug_report extension in generic layer
Now Generic layer is better example of a validation layer
Diffstat (limited to 'layers')
-rw-r--r--layers/generic.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/layers/generic.h b/layers/generic.h
index 793281b8..69a8970f 100644
--- a/layers/generic.h
+++ b/layers/generic.h
@@ -33,6 +33,17 @@
* This file contains static functions for the generated layer Generic
*/
+// The following is for logging error messages:
+struct layer_data {
+ debug_report_data *report_data;
+ VkDbgMsgCallback logging_callback;
+
+ layer_data() :
+ report_data(nullptr),
+ logging_callback(nullptr)
+ {};
+};
+
static const VkLayerProperties globalLayerProps[] = {
{
"Generic",