|
Blender V4.3
|
#include "BLI_compiler_attrs.h"#include "BLI_string.h"#include "BLI_system.h"#include "BLI_utildefines.h"#include "BKE_global.hh"#include "GPU_debug.hh"#include "GPU_platform.hh"#include "CLG_log.h"#include "gl_backend.hh"#include "gl_context.hh"#include "gl_uniform_buffer.hh"#include "gl_debug.hh"#include <cstdio>Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::gpu |
| namespace | blender::gpu::debug |
Macros | |
| #define | TRIM_NVIDIA_BUFFER_INFO 1 |
| #define | TRIM_SHADER_STATS_INFO 1 |
| #define | ERROR_CASE(err) |
Functions | |
Error Checking | |
This is only useful for implementation that does not support the KHR_debug extension OR when the implementations do not report any errors even when clearly doing shady things. | |
| void | blender::gpu::debug::check_gl_error (const char *info) |
| void | blender::gpu::debug::check_gl_resources (const char *info) |
| void | blender::gpu::debug::raise_gl_error (const char *info) |
Object Label | |
Useful for debugging through render-doc. Only defined if using | |
| static const char * | blender::gpu::debug::to_str_prefix (GLenum type) |
| static const char * | blender::gpu::debug::to_str_suffix (GLenum type) |
| void | blender::gpu::debug::object_label (GLenum type, GLuint object, const char *name) |
Variables | |
| static CLG_LogRef | LOG = {"gpu.debug"} |
Debug Callbacks | |
Hooks up debug callbacks to a debug OpenGL context using extensions or 4.3 core debug capabilities. | |
| #define | APIENTRY |
| static void APIENTRY | blender::gpu::debug::debug_callback (GLenum, GLenum type, GLuint, GLenum severity, GLsizei, const GLchar *message, const GLvoid *) |
| void | blender::gpu::debug::init_gl_callbacks () |
Debug features of OpenGL.
Definition in file gl_debug.cc.
| #define APIENTRY |
Definition at line 51 of file gl_debug.cc.
| #define ERROR_CASE | ( | err | ) |
Referenced by blender::gpu::debug::check_gl_error().
| #define TRIM_NVIDIA_BUFFER_INFO 1 |
Definition at line 34 of file gl_debug.cc.
Referenced by blender::gpu::debug::debug_callback().
| #define TRIM_SHADER_STATS_INFO 1 |
Definition at line 36 of file gl_debug.cc.
Referenced by blender::gpu::debug::debug_callback().
|
static |
Definition at line 31 of file gl_debug.cc.