Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-09-16 02:39:16 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-16 02:40:45 +0300
commit0dd44f46473d3706cc5343e0d01820d5ec56e962 (patch)
treec433428db8e01b8a0c71feaf3615300690479659 /source/blender/gpu/intern/gpu_select_pick.c
parent926b426073c20658f26c90641af5093ece142d49 (diff)
GPU: Add debug groups inside selection code
This makes the debugging easier.
Diffstat (limited to 'source/blender/gpu/intern/gpu_select_pick.c')
-rw-r--r--source/blender/gpu/intern/gpu_select_pick.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_select_pick.c b/source/blender/gpu/intern/gpu_select_pick.c
index c76ce0f1094..66748b4146a 100644
--- a/source/blender/gpu/intern/gpu_select_pick.c
+++ b/source/blender/gpu/intern/gpu_select_pick.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <string.h>
+#include "GPU_debug.h"
#include "GPU_framebuffer.h"
#include "GPU_immediate.h"
#include "GPU_select.h"
@@ -300,6 +301,8 @@ void gpu_select_pick_begin(uint (*buffer)[4], uint bufsize, const rcti *input, c
printf("%s: mode=%d, use_cache=%d, is_cache=%d\n", __func__, mode, ps->use_cache, ps->is_cached);
#endif
+ GPU_debug_group_begin("Selection Pick");
+
ps->bufsize = bufsize;
ps->buffer = buffer;
ps->mode = mode;
@@ -544,6 +547,8 @@ uint gpu_select_pick_end(void)
GPU_viewport(UNPACK4(ps->viewport));
}
+ GPU_debug_group_end();
+
/* assign but never free directly since it may be in cache */
DepthBufCache *rect_depth_final;