import support of instance debug messages

This commit is contained in:
Greg Wells
2025-05-23 09:45:18 -04:00
parent 4489a530c0
commit 68eb59b6f6
9 changed files with 200 additions and 32 deletions

View File

@@ -3,7 +3,7 @@
#include "utils/gryphn_error_code.h"
#include "core/instance/gryphn_instance.h"
struct gnPlatformDebugger;
struct gnPlatformDebugger_t;
typedef enum gnMessageSeverity_e {
GN_MESSAGE_VERBOSE = 0x00000001,
@@ -45,7 +45,7 @@ typedef struct gnDebuggerInfo_t {
} gnDebuggerInfo;
typedef struct gnDebugger_t {
struct gnPlatformDebugger* debugger;
struct gnPlatformDebugger_t* debugger;
gnInstance* instance;
} gnDebugger;

View File

@@ -2,7 +2,7 @@
#include <gryphn/gryphn_utils.h>
#include "core/gryphn_rendering_api.h"
struct gnPlatformInstance;
struct gnPlatformInstance_t;
struct gnFunctions_t;
struct gnDynamicLibrary_t;
@@ -17,7 +17,7 @@ typedef struct gnInstanceInfo_t {
} gnInstanceInfo;
typedef struct gnInstance_t {
struct gnPlatformInstance* instance;
struct gnPlatformInstance_t* instance;
gnBool valid;
struct gnFunctions_t* functions;

View File

@@ -8,7 +8,8 @@ typedef enum gnReturnCode_t {
GN_FAILED_CREATE_INSTANCE,
GN_FAILED_TO_CREATE_DEBUGGER,
GN_FAILED_TO_CREATE_DEVICE,
GN_FAILED_TO_ATTACH_WINDOW
GN_FAILED_TO_ATTACH_WINDOW,
GN_INVALID_INSTANCE
// GN_UNKNOWN_ERROR,
// GN_UNKNOWN_FRAMEBUFFER_ATTACHMENT,
@@ -37,5 +38,6 @@ static const char* gnErrorCodeToCString(enum gnReturnCode_t returnCode) {
case GN_FAILED_CREATE_INSTANCE: return "GN_FAILED_CREATE_INSTANCE";
case GN_FAILED_TO_CREATE_DEBUGGER: return "GN_FAILED_TO_CREATE_DEBUGGER";
case GN_FAILED_TO_CREATE_DEVICE: return "GN_FAILED_TO_CREATE_DEVICE";
case GN_INVALID_INSTANCE: return "GN_INVALID_INSTANCE";
}
}