Blender V4.3
GPU_debug.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2020 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
62#pragma once
63
64#include "BLI_sys_types.h"
65
66#define GPU_DEBUG_SHADER_COMPILATION_GROUP "Shader Compilation"
67
68void GPU_debug_group_begin(const char *name);
74void GPU_debug_get_groups_names(int name_buf_len, char *r_name_buf);
78bool GPU_debug_group_match(const char *ref);
79
87void GPU_debug_capture_begin(const char *title);
89
101void *GPU_debug_capture_scope_create(const char *name);
102
110bool GPU_debug_capture_scope_begin(void *scope);
111void GPU_debug_capture_scope_end(void *scope);
112
113namespace blender::gpu {
114
119 void *scope;
120
121 DebugScope(const char *identifier)
122 {
124 }
125
130
135
148
149 /* Capture everything until the end of the scope. */
154};
155
156} // namespace blender::gpu
void GPU_debug_group_end()
Definition gpu_debug.cc:33
void GPU_debug_capture_end()
Definition gpu_debug.cc:93
void GPU_debug_capture_scope_end(void *scope)
Definition gpu_debug.cc:145
void GPU_debug_capture_begin(const char *title)
Definition gpu_debug.cc:78
bool GPU_debug_group_match(const char *ref)
Definition gpu_debug.cc:61
bool GPU_debug_capture_scope_begin(void *scope)
Definition gpu_debug.cc:123
void GPU_debug_group_begin(const char *name)
Definition gpu_debug.cc:22
void GPU_debug_get_groups_names(int name_buf_len, char *r_name_buf)
Definition gpu_debug.cc:43
void * GPU_debug_capture_scope_create(const char *name)
Definition gpu_debug.cc:109
ScopedCapture scoped_capture()
Definition GPU_debug.hh:150
DebugScope(const char *identifier)
Definition GPU_debug.hh:121