Blender V5.0
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
61
62#pragma once
63
64#define GPU_DEBUG_SHADER_COMPILATION_GROUP "Shader Compilation"
65#define GPU_DEBUG_SHADER_SPECIALIZATION_GROUP "Shader Specialization"
66
67void GPU_debug_group_begin(const char *name);
73void GPU_debug_get_groups_names(int name_buf_len, char *r_name_buf);
77bool GPU_debug_group_match(const char *ref);
78
86void GPU_debug_capture_begin(const char *title);
88
100void *GPU_debug_capture_scope_create(const char *name);
101
109bool GPU_debug_capture_scope_begin(void *scope);
110void GPU_debug_capture_scope_end(void *scope);
111
112namespace blender::gpu {
113
118 void *scope;
119
120 DebugScope(const char *identifier)
121 {
123 }
124
129
134
147
148 /* Capture everything until the end of the scope. */
153};
154
155} // 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
const char * name
ScopedCapture scoped_capture()
Definition GPU_debug.hh:149
DebugScope(const char *identifier)
Definition GPU_debug.hh:120