From 88ce5153e482ee9cd912ae0b699014551a66ef49 Mon Sep 17 00:00:00 2001 From: Gregory Wells Date: Thu, 7 Aug 2025 23:25:38 -0400 Subject: [PATCH] new debugger functions --- projects/core/src/instance/gryphn_debugger.c | 10 ++++++++++ projects/core/src/instance/gryphn_debugger.h | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 projects/core/src/instance/gryphn_debugger.c diff --git a/projects/core/src/instance/gryphn_debugger.c b/projects/core/src/instance/gryphn_debugger.c new file mode 100644 index 0000000..4ddca6e --- /dev/null +++ b/projects/core/src/instance/gryphn_debugger.c @@ -0,0 +1,10 @@ +#include "gryphn_debugger.h" + +void gnDebuggerSetVerboseMessage(gnDebuggerCreateInfo* debugger, gnMessageData data) { + debugger->callback( + GN_MESSAGE_VERBOSE, + GN_DEBUG_MESSAGE_GENERAL, + data, + debugger->userData + ); +} diff --git a/projects/core/src/instance/gryphn_debugger.h b/projects/core/src/instance/gryphn_debugger.h index cca1829..20cc3d8 100644 --- a/projects/core/src/instance/gryphn_debugger.h +++ b/projects/core/src/instance/gryphn_debugger.h @@ -29,7 +29,8 @@ typedef gnBool (*gnDebuggerCallback)( typedef enum gnDebuggerLayer { GN_DEBUGGER_LAYER_PLATFORM, // enable platform (vulkan validation) layers - GN_DEBUGGER_LAYER_FUNCTIONS, // enable the checks on every function + GN_DEBUGGER_LAYER_FUNCTIONS, // enable the checks on every function, + GN_DEBUGGER_LAYER_ALLOCATORS, // enable the layer which debugs all allocations within Gryphn GN_LAYER_MAX } gnDebuggerLayer; @@ -42,6 +43,7 @@ typedef struct gnDebuggerCreateInfo { } gnDebuggerCreateInfo; #ifdef GN_REVEAL_IMPL +void gnDebuggerSetVerboseMessage(gnDebuggerCreateInfo* debugger, gnMessageData data); static inline void gnDebuggerSetErrorMessage(gnDebuggerCreateInfo debugger, gnMessageData data) { // if (debugger == NULL) return; debugger.callback(