Blender
V3.3
source
blender
gpu
metal
mtl_debug.mm
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
9
#include "
BLI_compiler_attrs.h
"
10
#include "
BLI_string.h
"
11
#include "
BLI_system.h
"
12
#include "
BLI_utildefines.h
"
13
14
#include "
BKE_global.h
"
15
16
#include "
GPU_debug.h
"
17
#include "
GPU_platform.h
"
18
19
#include "
mtl_context.hh
"
20
#include "
mtl_debug.hh
"
21
22
#include "
CLG_log.h
"
23
24
#include <utility>
25
26
namespace
blender::gpu::debug
{
27
28
CLG_LogRef
LOG
= {
"gpu.debug.metal"
};
29
30
void
mtl_debug_init
()
31
{
32
CLOG_ENSURE
(&
LOG
);
33
}
34
35
}
// namespace blender::gpu::debug
36
37
namespace
blender::gpu
{
38
39
/* -------------------------------------------------------------------- */
46
void
MTLContext::debug_group_begin
(
const
char
*name,
int
index)
47
{
48
if
(
G
.debug &
G_DEBUG_GPU
) {
49
this->
main_command_buffer
.
push_debug_group
(name, index);
50
}
51
}
52
53
void
MTLContext::debug_group_end
()
54
{
55
if
(
G
.debug &
G_DEBUG_GPU
) {
56
this->
main_command_buffer
.
pop_debug_group
();
57
}
58
}
59
62
}
// namespace blender::gpu
BKE_global.h
G_DEBUG_GPU
@ G_DEBUG_GPU
Definition:
BKE_global.h:193
BLI_compiler_attrs.h
BLI_string.h
BLI_system.h
BLI_utildefines.h
CLG_log.h
CLOG_ENSURE
#define CLOG_ENSURE(clg_ref)
Definition:
CLG_log.h:148
GPU_debug.h
GPU_platform.h
blender::gpu::MTLCommandBufferManager::pop_debug_group
void pop_debug_group()
Definition:
mtl_command_buffer.mm:461
blender::gpu::MTLCommandBufferManager::push_debug_group
void push_debug_group(const char *name, int index)
Definition:
mtl_command_buffer.mm:453
blender::gpu::MTLContext::debug_group_begin
void debug_group_begin(const char *name, int index) override
Definition:
mtl_debug.mm:46
blender::gpu::MTLContext::main_command_buffer
MTLCommandBufferManager main_command_buffer
Definition:
mtl_context.hh:611
blender::gpu::MTLContext::debug_group_end
void debug_group_end() override
Definition:
mtl_debug.mm:53
G
#define G(x, y, z)
mtl_context.hh
mtl_debug.hh
blender::gpu::debug
Definition:
mtl_debug.hh:14
blender::gpu::debug::mtl_debug_init
void mtl_debug_init()
Definition:
mtl_debug.mm:30
blender::gpu::debug::LOG
CLG_LogRef LOG
Definition:
mtl_debug.mm:28
blender::gpu
Definition:
gpu_backend.hh:15
CLG_LogRef
Definition:
CLG_log.h:104
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1