diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-14 20:52:49 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-14 21:53:34 +0300 |
commit | 2da4e2be0a445052e6b984e93c6d232b157d1436 (patch) | |
tree | b04bfc20d6a7ab6b204de0f5ab568aee6a01cabf /source/blender/gpu/intern/gpu_debug_private.hh | |
parent | 59a9cf46b485a00e42fcf93851ff3ed0ba6fe24d (diff) |
Cleanup: GPUDebug: Use Vector instead of custom stack
Diffstat (limited to 'source/blender/gpu/intern/gpu_debug_private.hh')
-rw-r--r-- | source/blender/gpu/intern/gpu_debug_private.hh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/source/blender/gpu/intern/gpu_debug_private.hh b/source/blender/gpu/intern/gpu_debug_private.hh index 7432b02541e..1887e7c698a 100644 --- a/source/blender/gpu/intern/gpu_debug_private.hh +++ b/source/blender/gpu/intern/gpu_debug_private.hh @@ -25,14 +25,11 @@ #pragma once -namespace blender::gpu { +#include "BLI_string_ref.hh" +#include "BLI_vector.hh" -#define DEBUG_STACK_LEN 64 -#define DEBUG_STACK_NAME_LEN 128 +namespace blender::gpu { -struct DebugStack { - char names[DEBUG_STACK_LEN][DEBUG_STACK_NAME_LEN]; - int index = 0; -}; +typedef Vector<StringRef> DebugStack; } // namespace blender::gpu
\ No newline at end of file |