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:36:32 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-16 02:40:45 +0300
commit8eda18f789dc95a2b526df473ee16c75a4e87229 (patch)
tree8d41109e212c582139281dfe1f65dfe51c14e660 /source/blender/gpu/GPU_debug.h
parentfafc1fbd7fb36e284fbcbd8aa9060dd96c48d4e6 (diff)
GPUDebug: Add function to test if inside a debug group
This is a nice way to check certain GPU codepaths only for some regions or callers paths.
Diffstat (limited to 'source/blender/gpu/GPU_debug.h')
-rw-r--r--source/blender/gpu/GPU_debug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_debug.h b/source/blender/gpu/GPU_debug.h
index a219222b759..8e8d889b387 100644
--- a/source/blender/gpu/GPU_debug.h
+++ b/source/blender/gpu/GPU_debug.h
@@ -25,6 +25,8 @@
#pragma once
+#include "BLI_sys_types.h"
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -32,6 +34,7 @@ extern "C" {
void GPU_debug_group_begin(const char *name);
void GPU_debug_group_end(void);
void GPU_debug_get_groups_names(int name_buf_len, char *r_name_buf);
+bool GPU_debug_group_match(const char *ref);
#ifdef __cplusplus
}