mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-02 12:08:11 +00:00
layer color coverage / usage in thread colors
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
#undef LAYER_COLOR
|
||||||
|
#define LAYER_COLOR 0x59b6c3ff
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Top-Level Layer Initialization
|
//~ rjf: Top-Level Layer Initialization
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -4,8 +4,8 @@
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Base Includes
|
//~ rjf: Base Includes
|
||||||
|
|
||||||
#undef MARKUP_LAYER_COLOR
|
#undef LAYER_COLOR
|
||||||
#define MARKUP_LAYER_COLOR 0.20f, 0.60f, 0.80f
|
#define LAYER_COLOR 0.20f, 0.60f, 0.80f
|
||||||
|
|
||||||
#include "base_core.c"
|
#include "base_core.c"
|
||||||
#include "base_profile.c"
|
#include "base_profile.c"
|
||||||
|
|||||||
@@ -8,9 +8,12 @@
|
|||||||
#define RADDBG_MARKUP_VSNPRINTF raddbg_vsnprintf
|
#define RADDBG_MARKUP_VSNPRINTF raddbg_vsnprintf
|
||||||
#include "lib_raddbg_markup/raddbg_markup.h"
|
#include "lib_raddbg_markup/raddbg_markup.h"
|
||||||
|
|
||||||
|
#if !defined(LAYER_COLOR)
|
||||||
|
# define LAYER_COLOR 0x404040ff
|
||||||
|
#endif
|
||||||
|
|
||||||
internal void set_thread_name(String8 string);
|
internal void set_thread_name(String8 string);
|
||||||
internal void set_thread_namef(char *fmt, ...);
|
internal void set_thread_namef(char *fmt, ...);
|
||||||
#define ThreadNameF(...) (set_thread_namef(__VA_ARGS__))
|
#define ThreadNameF(...) (set_thread_namef(__VA_ARGS__), raddbg_thread_color_u32(LAYER_COLOR))
|
||||||
#define ThreadName(str) (set_thread_name(str))
|
|
||||||
|
|
||||||
#endif // BASE_MARKUP_H
|
#endif // BASE_MARKUP_H
|
||||||
|
|||||||
+18
-22
@@ -11,10 +11,6 @@
|
|||||||
# define PROFILE_TELEMETRY 0
|
# define PROFILE_TELEMETRY 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MARKUP_LAYER_COLOR)
|
|
||||||
# define MARKUP_LAYER_COLOR 1.00f, 0.00f, 1.00f
|
|
||||||
#endif
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Third Party Includes
|
//~ rjf: Third Party Includes
|
||||||
|
|
||||||
@@ -44,25 +40,25 @@
|
|||||||
# define ProfLockDrop(...) tmReleasedLock(0, __VA_ARGS__)
|
# define ProfLockDrop(...) tmReleasedLock(0, __VA_ARGS__)
|
||||||
# define ProfColor(color) tmZoneColorSticky(color)
|
# define ProfColor(color) tmZoneColorSticky(color)
|
||||||
# define ProfBeginV(...) \
|
# define ProfBeginV(...) \
|
||||||
if (TM_API_PTR) { \
|
if (TM_API_PTR) { \
|
||||||
static tm_uint64 file_id = 0; TM_API_PTR->_tmStaticString(&file_id, __FILE__); \
|
static tm_uint64 file_id = 0; TM_API_PTR->_tmStaticString(&file_id, __FILE__); \
|
||||||
Temp scratch = scratch_begin(0,0); \
|
Temp scratch = scratch_begin(0,0); \
|
||||||
String8 string = push_str8f(scratch.arena, __VA_ARGS__); \
|
String8 string = push_str8f(scratch.arena, __VA_ARGS__); \
|
||||||
tm_uint64 hash = TM_API_PTR->_tmHash((char*)string.str, string.size); \
|
tm_uint64 hash = TM_API_PTR->_tmHash((char*)string.str, string.size); \
|
||||||
hash = TM_API_PTR->_tmSendDynamicString(hash, (char*)string.str); \
|
hash = TM_API_PTR->_tmSendDynamicString(hash, (char*)string.str); \
|
||||||
TM_API_PTR->_tmEnterZoneFast_Core(0, 0, file_id, __LINE__, hash); \
|
TM_API_PTR->_tmEnterZoneFast_Core(0, 0, file_id, __LINE__, hash); \
|
||||||
scratch_end(scratch); \
|
scratch_end(scratch); \
|
||||||
}
|
}
|
||||||
# define ProfNoteV(...) \
|
# define ProfNoteV(...) \
|
||||||
if (TM_API_PTR) { \
|
if (TM_API_PTR) { \
|
||||||
static tm_uint64 file_id = 0; TM_API_PTR->_tmStaticString(&file_id, __FILE__); \
|
static tm_uint64 file_id = 0; TM_API_PTR->_tmStaticString(&file_id, __FILE__); \
|
||||||
Temp scratch = scratch_begin(0,0); \
|
Temp scratch = scratch_begin(0,0); \
|
||||||
String8 string = push_str8f(scratch.arena, __VA_ARGS__); \
|
String8 string = push_str8f(scratch.arena, __VA_ARGS__); \
|
||||||
tm_uint64 hash = TM_API_PTR->_tmHash((char*)string.str, string.size); \
|
tm_uint64 hash = TM_API_PTR->_tmHash((char*)string.str, string.size); \
|
||||||
hash = TM_API_PTR->_tmSendDynamicString(hash, (char*)string.str); \
|
hash = TM_API_PTR->_tmSendDynamicString(hash, (char*)string.str); \
|
||||||
TM_API_PTR->_tmMessageFast_Core(0, TMMF_ICON_NOTE, file_id, __LINE__, hash); \
|
TM_API_PTR->_tmMessageFast_Core(0, TMMF_ICON_NOTE, file_id, __LINE__, hash); \
|
||||||
scratch_end(scratch); \
|
scratch_end(scratch); \
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ internal void tctx_init_and_equip(TCTX *tctx);
|
|||||||
internal void tctx_release(void);
|
internal void tctx_release(void);
|
||||||
internal TCTX* tctx_get_equipped(void);
|
internal TCTX* tctx_get_equipped(void);
|
||||||
|
|
||||||
internal Arena* tctx_get_scratch(Arena **conflicts, U64 countt);
|
internal Arena* tctx_get_scratch(Arena **conflicts, U64 count);
|
||||||
|
|
||||||
internal void tctx_set_thread_name(String8 name);
|
internal void tctx_set_thread_name(String8 name);
|
||||||
internal String8 tctx_get_thread_name(void);
|
internal String8 tctx_get_thread_name(void);
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
#undef LAYER_COLOR
|
||||||
|
#define LAYER_COLOR 0x969696ff
|
||||||
|
|
||||||
#include "ctrl_core.c"
|
#include "ctrl_core.c"
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
#undef LAYER_COLOR
|
||||||
|
#define LAYER_COLOR 0xe34cd4ff
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Instruction Decoding/Disassembling Type Functions
|
//~ rjf: Instruction Decoding/Disassembling Type Functions
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
#undef MARKUP_LAYER_COLOR
|
#undef LAYER_COLOR
|
||||||
#define MARKUP_LAYER_COLOR 0.70f, 0.50f, 0.25f
|
#define LAYER_COLOR 0x4d9ae3ff
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Generated Code
|
//~ rjf: Generated Code
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
#undef LAYER_COLOR
|
||||||
|
#define LAYER_COLOR 0x7c4ce3ff
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Basic Helpers
|
//~ rjf: Basic Helpers
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
#undef LAYER_COLOR
|
||||||
|
#define LAYER_COLOR 0xfffa00ff
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Basic Helpers
|
//~ rjf: Basic Helpers
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
#undef LAYER_COLOR
|
||||||
|
#define LAYER_COLOR 0xe34cd4ff
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Main Layer Initialization
|
//~ rjf: Main Layer Initialization
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
#undef LAYER_COLOR
|
||||||
|
#define LAYER_COLOR 0x684123ff
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Basic Helpers
|
//~ rjf: Basic Helpers
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
#undef LAYER_COLOR
|
||||||
|
#define LAYER_COLOR 0xb8a06bff
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Main Layer Initialization
|
//~ rjf: Main Layer Initialization
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
#undef MARKUP_LAYER_COLOR
|
#undef LAYER_COLOR
|
||||||
#define MARKUP_LAYER_COLOR 0.10f, 0.20f, 0.25f
|
#define LAYER_COLOR 0xf0a215ff
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Generated Code
|
//~ rjf: Generated Code
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
#undef MARKUP_LAYER_COLOR
|
|
||||||
#define MARKUP_LAYER_COLOR 0.80f, 0.60f, 0.20f
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Input Layout Element Tables
|
//~ rjf: Input Layout Element Tables
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
#undef LAYER_COLOR
|
||||||
|
#define LAYER_COLOR 0xc22121ff
|
||||||
|
|
||||||
#include "render_core.c"
|
#include "render_core.c"
|
||||||
|
|
||||||
#if R_BACKEND == R_BACKEND_STUB
|
#if R_BACKEND == R_BACKEND_STUB
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
#undef LAYER_COLOR
|
||||||
|
#define LAYER_COLOR 0xe34cd4ff
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Basic Helpers
|
//~ rjf: Basic Helpers
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
#undef LAYER_COLOR
|
||||||
|
#define LAYER_COLOR 0xe34cd4ff
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Basic Helpers
|
//~ rjf: Basic Helpers
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
#undef MARKUP_LAYER_COLOR
|
|
||||||
#define MARKUP_LAYER_COLOR 0.80f, 0.40f, 0.35f
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Globals
|
//~ rjf: Globals
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
// Copyright (c) 2024 Epic Games Tools
|
// Copyright (c) 2024 Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
#undef MARKUP_LAYER_COLOR
|
#undef LAYER_COLOR
|
||||||
#define MARKUP_LAYER_COLOR 0.70f, 0.30f, 0.15f
|
#define LAYER_COLOR 0xb5438dff
|
||||||
|
|
||||||
#include "ui_core.c"
|
#include "ui_core.c"
|
||||||
#include "ui_basic_widgets.c"
|
#include "ui_basic_widgets.c"
|
||||||
|
|||||||
Reference in New Issue
Block a user