Blender V5.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
61
62#pragma once
63
64#include "BLI_index_range.hh"
65
66#include <string>
67
68namespace blender {
69
70#define GPU_DEBUG_SHADER_COMPILATION_GROUP "Shader Compilation"
71#define GPU_DEBUG_SHADER_SPECIALIZATION_GROUP "Shader Specialization"
72
73void GPU_debug_group_begin(const char *name);
79void GPU_debug_get_groups_names(int name_buf_maxncpy, char *r_name_buf);
80std::string GPU_debug_get_groups_names(IndexRange levels = IndexRange(0, 9999));
84bool GPU_debug_group_match(const char *ref);
85
93void GPU_debug_capture_begin(const char *title);
95
107void *GPU_debug_capture_scope_create(const char *name);
108
116bool GPU_debug_capture_scope_begin(void *scope);
117void GPU_debug_capture_scope_end(void *scope);
118
119namespace gpu {
120
125 void *scope;
126
127 DebugScope(const char *identifier)
128 {
130 }
131
136
141
154
155 /* Capture everything until the end of the scope. */
160};
161
162} // namespace gpu
163} // namespace blender
constexpr IndexRange()=default
BMesh Iterators.
void * GPU_debug_capture_scope_create(const char *name)
Definition gpu_debug.cc:132
void GPU_debug_capture_begin(const char *title)
Definition gpu_debug.cc:101
void GPU_debug_capture_end()
Definition gpu_debug.cc:116
void GPU_debug_group_end()
Definition gpu_debug.cc:34
void GPU_debug_capture_scope_end(void *scope)
Definition gpu_debug.cc:168
bool GPU_debug_group_match(const char *ref)
Definition gpu_debug.cc:84
void GPU_debug_get_groups_names(int name_buf_maxncpy, char *r_name_buf)
Definition gpu_debug.cc:44
void GPU_debug_group_begin(const char *name)
Definition gpu_debug.cc:23
bool GPU_debug_capture_scope_begin(void *scope)
Definition gpu_debug.cc:146
ScopedCapture scoped_capture()
Definition GPU_debug.hh:156
DebugScope(const char *identifier)
Definition GPU_debug.hh:127