Blender
V3.3
|
Functions | |
void | mtl_debug_init () |
void | init_debug_layer () |
DEBUG_FUNC_DECLARE (PFNGLBEGINQUERYPROC, void, glBeginQuery, GLenum, target, GLuint, id) | |
DEBUG_FUNC_DECLARE (PFNGLBEGINTRANSFORMFEEDBACKPROC, void, glBeginTransformFeedback, GLenum, primitiveMode) | |
DEBUG_FUNC_DECLARE (PFNGLBINDBUFFERBASEPROC, void, glBindBufferBase, GLenum, target, GLuint, index, GLuint, buffer) | |
DEBUG_FUNC_DECLARE (PFNGLBINDBUFFERPROC, void, glBindBuffer, GLenum, target, GLuint, buffer) | |
DEBUG_FUNC_DECLARE (PFNGLBINDFRAMEBUFFERPROC, void, glBindFramebuffer, GLenum, target, GLuint, framebuffer) | |
DEBUG_FUNC_DECLARE (PFNGLBINDSAMPLERPROC, void, glBindSampler, GLuint, unit, GLuint, sampler) | |
DEBUG_FUNC_DECLARE (PFNGLBINDVERTEXARRAYPROC, void, glBindVertexArray, GLuint, array) | |
DEBUG_FUNC_DECLARE (PFNGLBLITFRAMEBUFFERPROC, void, glBlitFramebuffer, GLint, srcX0, GLint, srcY0, GLint, srcX1, GLint, srcY1, GLint, dstX0, GLint, dstY0, GLint, dstX1, GLint, dstY1, GLbitfield, mask, GLenum, filter) | |
DEBUG_FUNC_DECLARE (PFNGLBUFFERDATAPROC, void, glBufferData, GLenum, target, GLsizeiptr, size, const void *, data, GLenum, usage) | |
DEBUG_FUNC_DECLARE (PFNGLBUFFERSUBDATAPROC, void, glBufferSubData, GLenum, target, GLintptr, offset, GLsizeiptr, size, const void *, data) | |
DEBUG_FUNC_DECLARE (PFNGLDELETEBUFFERSPROC, void, glDeleteBuffers, GLsizei, n, const GLuint *, buffers) | |
DEBUG_FUNC_DECLARE (PFNGLDELETEFRAMEBUFFERSPROC, void, glDeleteFramebuffers, GLsizei, n, const GLuint *, framebuffers) | |
DEBUG_FUNC_DECLARE (PFNGLDELETEPROGRAMPROC, void, glDeleteProgram, GLuint, program) | |
DEBUG_FUNC_DECLARE (PFNGLDELETEQUERIESPROC, void, glDeleteQueries, GLsizei, n, const GLuint *, ids) | |
DEBUG_FUNC_DECLARE (PFNGLDELETESAMPLERSPROC, void, glDeleteSamplers, GLsizei, count, const GLuint *, samplers) | |
DEBUG_FUNC_DECLARE (PFNGLDELETESHADERPROC, void, glDeleteShader, GLuint, shader) | |
DEBUG_FUNC_DECLARE (PFNGLDELETEVERTEXARRAYSPROC, void, glDeleteVertexArrays, GLsizei, n, const GLuint *, arrays) | |
DEBUG_FUNC_DECLARE (PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC, void, glDrawArraysInstancedBaseInstance, GLenum, mode, GLint, first, GLsizei, count, GLsizei, primcount, GLuint, baseinstance) | |
DEBUG_FUNC_DECLARE (PFNGLDRAWARRAYSINSTANCEDPROC, void, glDrawArraysInstanced, GLenum, mode, GLint, first, GLsizei, count, GLsizei, primcount) | |
DEBUG_FUNC_DECLARE (PFNGLDRAWBUFFERSPROC, void, glDrawBuffers, GLsizei, n, const GLenum *, bufs) | |
DEBUG_FUNC_DECLARE (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC, void, glDrawElementsInstancedBaseVertexBaseInstance, GLenum, mode, GLsizei, count, GLenum, type, const void *, indices, GLsizei, primcount, GLint, basevertex, GLuint, baseinstance) | |
DEBUG_FUNC_DECLARE (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC, void, glDrawElementsInstancedBaseVertex, GLenum, mode, GLsizei, count, GLenum, type, const void *, indices, GLsizei, instancecount, GLint, basevertex) | |
DEBUG_FUNC_DECLARE (PFNGLENDQUERYPROC, void, glEndQuery, GLenum, target) | |
DEBUG_FUNC_DECLARE (PFNGLDISPATCHCOMPUTEPROC, void, glDispatchCompute, GLuint, num_groups_x, GLuint, num_groups_y, GLuint, num_groups_z) | |
DEBUG_FUNC_DECLARE (PFNGLDISPATCHCOMPUTEINDIRECTPROC, void, glDispatchComputeIndirect, GLintptr, indirect) | |
DEBUG_FUNC_DECLARE (PFNGLENDTRANSFORMFEEDBACKPROC, void, glEndTransformFeedback, void) | |
DEBUG_FUNC_DECLARE (PFNGLFRAMEBUFFERTEXTURE2DPROC, void, glFramebufferTexture2D, GLenum, target, GLenum, attachment, GLenum, textarget, GLuint, texture, GLint, level) | |
DEBUG_FUNC_DECLARE (PFNGLFRAMEBUFFERTEXTURELAYERPROC, void, glFramebufferTextureLayer, GLenum, target, GLenum, attachment, GLuint, texture, GLint, level, GLint, layer) | |
DEBUG_FUNC_DECLARE (PFNGLFRAMEBUFFERTEXTUREPROC, void, glFramebufferTexture, GLenum, target, GLenum, attachment, GLuint, texture, GLint, level) | |
DEBUG_FUNC_DECLARE (PFNGLGENBUFFERSPROC, void, glGenBuffers, GLsizei, n, GLuint *, buffers) | |
DEBUG_FUNC_DECLARE (PFNGLGENERATEMIPMAPPROC, void, glGenerateMipmap, GLenum, target) | |
DEBUG_FUNC_DECLARE (PFNGLGENERATETEXTUREMIPMAPPROC, void, glGenerateTextureMipmap, GLuint, texture) | |
DEBUG_FUNC_DECLARE (PFNGLGENFRAMEBUFFERSPROC, void, glGenFramebuffers, GLsizei, n, GLuint *, framebuffers) | |
DEBUG_FUNC_DECLARE (PFNGLGENQUERIESPROC, void, glGenQueries, GLsizei, n, GLuint *, ids) | |
DEBUG_FUNC_DECLARE (PFNGLGENSAMPLERSPROC, void, glGenSamplers, GLsizei, n, GLuint *, samplers) | |
DEBUG_FUNC_DECLARE (PFNGLGENVERTEXARRAYSPROC, void, glGenVertexArrays, GLsizei, n, GLuint *, arrays) | |
DEBUG_FUNC_DECLARE (PFNGLLINKPROGRAMPROC, void, glLinkProgram, GLuint, program) | |
DEBUG_FUNC_DECLARE (PFNGLMAPBUFFERRANGEPROC, GPUvoidptr, glMapBufferRange, GLenum, target, GLintptr, offset, GLsizeiptr, length, GLbitfield, access) | |
DEBUG_FUNC_DECLARE (PFNGLTEXBUFFERPROC, void, glTexBuffer, GLenum, target, GLenum, internalFormat, GLuint, buffer) | |
DEBUG_FUNC_DECLARE (PFNGLTEXIMAGE3DPROC, void, glTexImage3D, GLenum, target, GLint, level, GLint, internalFormat, GLsizei, width, GLsizei, height, GLsizei, depth, GLint, border, GLenum, format, GLenum, type, const GLvoid *, pixels) | |
DEBUG_FUNC_DECLARE (PFNGLTEXSUBIMAGE3DPROC, void, glTexSubImage3D, GLenum, target, GLint, level, GLint, xoffset, GLint, yoffset, GLint, zoffset, GLsizei, width, GLsizei, height, GLsizei, depth, GLenum, format, GLenum, type, const GLvoid *, pixels) | |
DEBUG_FUNC_DECLARE (PFNGLTEXTUREBUFFERPROC, void, glTextureBuffer, GLuint, texture, GLenum, internalformat, GLuint, buffer) | |
DEBUG_FUNC_DECLARE (PFNGLUNMAPBUFFERPROC, GLboolean, glUnmapBuffer, GLenum, target) | |
DEBUG_FUNC_DECLARE (PFNGLUSEPROGRAMPROC, void, glUseProgram, GLuint, program) | |
Debug Callbacks | |
Hooks up debug callbacks to a debug OpenGL context using extensions or 4.3 core debug capabilities. | |
static void APIENTRY | debug_callback (GLenum UNUSED(source), GLenum type, GLuint UNUSED(id), GLenum severity, GLsizei UNUSED(length), const GLchar *message, const GLvoid *UNUSED(userParm)) |
void | init_gl_callbacks () |
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 | check_gl_error (const char *info) |
void | check_gl_resources (const char *info) |
void | raise_gl_error (const char *info) |
Object Label | |
Useful for debugging through render-doc. Only defined if using | |
static const char * | to_str_prefix (GLenum type) |
static const char * | to_str_suffix (GLenum type) |
void | object_label (GLenum type, GLuint object, const char *name) |
Variables | |
CLG_LogRef | LOG = {"gpu.debug.metal"} |
void blender::gpu::debug::check_gl_error | ( | const char * | info | ) |
Definition at line 181 of file gl_debug.cc.
References debug_callback(), error(), ERROR_CASE, G, G_DEBUG_GPU, and SNPRINTF.
Referenced by blender::gpu::detect_mip_render_workaround().
void blender::gpu::debug::check_gl_resources | ( | const char * | info | ) |
Definition at line 214 of file gl_debug.cc.
References blender::gpu::GLContext::bound_ubo_slots, debug_callback(), G, G_DEBUG_GPU, blender::gpu::GLContext::get(), GPU_bgl_get(), blender::gpu::Shader::name_get(), blender::gpu::Context::shader, SNPRINTF, and tex_input().
|
static |
Suppress buffer infos flooding the output.
Suppress buffer infos flooding the output.
Do not duplicate shader compilation error/warnings.
Definition at line 54 of file gl_debug.cc.
References BLI_system_backtrace(), CLG_color_support_get(), CLG_FLAG_USE, CLG_logf(), CLG_SEVERITY_ERROR, CLG_SEVERITY_INFO, CLG_SEVERITY_WARN, ELEM, CLG_LogType::flag, GPU_debug_get_groups_names(), GPU_debug_group_match(), GPU_DEBUG_SHADER_COMPILATION_GROUP, GPU_DEVICE_NVIDIA, GPU_DRIVER_OFFICIAL, GPU_OS_ANY, GPU_type_matches(), CLG_LogType::level, LOG, STRPREFIX, TRIM_NVIDIA_BUFFER_INFO, TRIM_SHADER_STATS_INFO, CLG_LogRef::type, and type.
Referenced by check_gl_error(), check_gl_resources(), init_gl_callbacks(), and raise_gl_error().
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLBEGINQUERYPROC | , |
void | , | ||
glBeginQuery | , | ||
GLenum | , | ||
target | , | ||
GLuint | , | ||
id | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLBEGINTRANSFORMFEEDBACKPROC | , |
void | , | ||
glBeginTransformFeedback | , | ||
GLenum | , | ||
primitiveMode | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLBINDBUFFERBASEPROC | , |
void | , | ||
glBindBufferBase | , | ||
GLenum | , | ||
target | , | ||
GLuint | , | ||
index | , | ||
GLuint | , | ||
buffer | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLBINDBUFFERPROC | , |
void | , | ||
glBindBuffer | , | ||
GLenum | , | ||
target | , | ||
GLuint | , | ||
buffer | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLBINDFRAMEBUFFERPROC | , |
void | , | ||
glBindFramebuffer | , | ||
GLenum | , | ||
target | , | ||
GLuint | , | ||
framebuffer | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLBINDSAMPLERPROC | , |
void | , | ||
glBindSampler | , | ||
GLuint | , | ||
unit | , | ||
GLuint | , | ||
sampler | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLBINDVERTEXARRAYPROC | , |
void | , | ||
glBindVertexArray | , | ||
GLuint | , | ||
array | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLBLITFRAMEBUFFERPROC | , |
void | , | ||
glBlitFramebuffer | , | ||
GLint | , | ||
srcX0 | , | ||
GLint | , | ||
srcY0 | , | ||
GLint | , | ||
srcX1 | , | ||
GLint | , | ||
srcY1 | , | ||
GLint | , | ||
dstX0 | , | ||
GLint | , | ||
dstY0 | , | ||
GLint | , | ||
dstX1 | , | ||
GLint | , | ||
dstY1 | , | ||
GLbitfield | , | ||
mask | , | ||
GLenum | , | ||
filter | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLBUFFERDATAPROC | , |
void | , | ||
glBufferData | , | ||
GLenum | , | ||
target | , | ||
GLsizeiptr | , | ||
size | , | ||
const void * | , | ||
data | , | ||
GLenum | , | ||
usage | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLBUFFERSUBDATAPROC | , |
void | , | ||
glBufferSubData | , | ||
GLenum | , | ||
target | , | ||
GLintptr | , | ||
offset | , | ||
GLsizeiptr | , | ||
size | , | ||
const void * | , | ||
data | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDELETEBUFFERSPROC | , |
void | , | ||
glDeleteBuffers | , | ||
GLsizei | , | ||
n | , | ||
const GLuint * | , | ||
buffers | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDELETEFRAMEBUFFERSPROC | , |
void | , | ||
glDeleteFramebuffers | , | ||
GLsizei | , | ||
n | , | ||
const GLuint * | , | ||
framebuffers | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDELETEPROGRAMPROC | , |
void | , | ||
glDeleteProgram | , | ||
GLuint | , | ||
program | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDELETEQUERIESPROC | , |
void | , | ||
glDeleteQueries | , | ||
GLsizei | , | ||
n | , | ||
const GLuint * | , | ||
ids | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDELETESAMPLERSPROC | , |
void | , | ||
glDeleteSamplers | , | ||
GLsizei | , | ||
count | , | ||
const GLuint * | , | ||
samplers | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDELETESHADERPROC | , |
void | , | ||
glDeleteShader | , | ||
GLuint | , | ||
shader | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDELETEVERTEXARRAYSPROC | , |
void | , | ||
glDeleteVertexArrays | , | ||
GLsizei | , | ||
n | , | ||
const GLuint * | , | ||
arrays | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDISPATCHCOMPUTEINDIRECTPROC | , |
void | , | ||
glDispatchComputeIndirect | , | ||
GLintptr | , | ||
indirect | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDISPATCHCOMPUTEPROC | , |
void | , | ||
glDispatchCompute | , | ||
GLuint | , | ||
num_groups_x | , | ||
GLuint | , | ||
num_groups_y | , | ||
GLuint | , | ||
num_groups_z | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC | , |
void | , | ||
glDrawArraysInstancedBaseInstance | , | ||
GLenum | , | ||
mode | , | ||
GLint | , | ||
first | , | ||
GLsizei | , | ||
count | , | ||
GLsizei | , | ||
primcount | , | ||
GLuint | , | ||
baseinstance | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDRAWARRAYSINSTANCEDPROC | , |
void | , | ||
glDrawArraysInstanced | , | ||
GLenum | , | ||
mode | , | ||
GLint | , | ||
first | , | ||
GLsizei | , | ||
count | , | ||
GLsizei | , | ||
primcount | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDRAWBUFFERSPROC | , |
void | , | ||
glDrawBuffers | , | ||
GLsizei | , | ||
n | , | ||
const GLenum * | , | ||
bufs | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC | , |
void | , | ||
glDrawElementsInstancedBaseVertexBaseInstance | , | ||
GLenum | , | ||
mode | , | ||
GLsizei | , | ||
count | , | ||
GLenum | , | ||
type | , | ||
const void * | , | ||
indices | , | ||
GLsizei | , | ||
primcount | , | ||
GLint | , | ||
basevertex | , | ||
GLuint | , | ||
baseinstance | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC | , |
void | , | ||
glDrawElementsInstancedBaseVertex | , | ||
GLenum | , | ||
mode | , | ||
GLsizei | , | ||
count | , | ||
GLenum | , | ||
type | , | ||
const void * | , | ||
indices | , | ||
GLsizei | , | ||
instancecount | , | ||
GLint | , | ||
basevertex | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLENDQUERYPROC | , |
void | , | ||
glEndQuery | , | ||
GLenum | , | ||
target | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLENDTRANSFORMFEEDBACKPROC | , |
void | , | ||
glEndTransformFeedback | , | ||
void | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLFRAMEBUFFERTEXTURE2DPROC | , |
void | , | ||
glFramebufferTexture2D | , | ||
GLenum | , | ||
target | , | ||
GLenum | , | ||
attachment | , | ||
GLenum | , | ||
textarget | , | ||
GLuint | , | ||
texture | , | ||
GLint | , | ||
level | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLFRAMEBUFFERTEXTURELAYERPROC | , |
void | , | ||
glFramebufferTextureLayer | , | ||
GLenum | , | ||
target | , | ||
GLenum | , | ||
attachment | , | ||
GLuint | , | ||
texture | , | ||
GLint | , | ||
level | , | ||
GLint | , | ||
layer | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLFRAMEBUFFERTEXTUREPROC | , |
void | , | ||
glFramebufferTexture | , | ||
GLenum | , | ||
target | , | ||
GLenum | , | ||
attachment | , | ||
GLuint | , | ||
texture | , | ||
GLint | , | ||
level | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLGENBUFFERSPROC | , |
void | , | ||
glGenBuffers | , | ||
GLsizei | , | ||
n | , | ||
GLuint * | , | ||
buffers | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLGENERATEMIPMAPPROC | , |
void | , | ||
glGenerateMipmap | , | ||
GLenum | , | ||
target | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLGENERATETEXTUREMIPMAPPROC | , |
void | , | ||
glGenerateTextureMipmap | , | ||
GLuint | , | ||
texture | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLGENFRAMEBUFFERSPROC | , |
void | , | ||
glGenFramebuffers | , | ||
GLsizei | , | ||
n | , | ||
GLuint * | , | ||
framebuffers | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLGENQUERIESPROC | , |
void | , | ||
glGenQueries | , | ||
GLsizei | , | ||
n | , | ||
GLuint * | , | ||
ids | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLGENSAMPLERSPROC | , |
void | , | ||
glGenSamplers | , | ||
GLsizei | , | ||
n | , | ||
GLuint * | , | ||
samplers | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLGENVERTEXARRAYSPROC | , |
void | , | ||
glGenVertexArrays | , | ||
GLsizei | , | ||
n | , | ||
GLuint * | , | ||
arrays | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLLINKPROGRAMPROC | , |
void | , | ||
glLinkProgram | , | ||
GLuint | , | ||
program | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLMAPBUFFERRANGEPROC | , |
GPUvoidptr | , | ||
glMapBufferRange | , | ||
GLenum | , | ||
target | , | ||
GLintptr | , | ||
offset | , | ||
GLsizeiptr | , | ||
length | , | ||
GLbitfield | , | ||
access | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLTEXBUFFERPROC | , |
void | , | ||
glTexBuffer | , | ||
GLenum | , | ||
target | , | ||
GLenum | , | ||
internalFormat | , | ||
GLuint | , | ||
buffer | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLTEXIMAGE3DPROC | , |
void | , | ||
glTexImage3D | , | ||
GLenum | , | ||
target | , | ||
GLint | , | ||
level | , | ||
GLint | , | ||
internalFormat | , | ||
GLsizei | , | ||
width | , | ||
GLsizei | , | ||
height | , | ||
GLsizei | , | ||
depth | , | ||
GLint | , | ||
border | , | ||
GLenum | , | ||
format | , | ||
GLenum | , | ||
type | , | ||
const GLvoid * | , | ||
pixels | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLTEXSUBIMAGE3DPROC | , |
void | , | ||
glTexSubImage3D | , | ||
GLenum | , | ||
target | , | ||
GLint | , | ||
level | , | ||
GLint | , | ||
xoffset | , | ||
GLint | , | ||
yoffset | , | ||
GLint | , | ||
zoffset | , | ||
GLsizei | , | ||
width | , | ||
GLsizei | , | ||
height | , | ||
GLsizei | , | ||
depth | , | ||
GLenum | , | ||
format | , | ||
GLenum | , | ||
type | , | ||
const GLvoid * | , | ||
pixels | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLTEXTUREBUFFERPROC | , |
void | , | ||
glTextureBuffer | , | ||
GLuint | , | ||
texture | , | ||
GLenum | , | ||
internalformat | , | ||
GLuint | , | ||
buffer | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLUNMAPBUFFERPROC | , |
GLboolean | , | ||
glUnmapBuffer | , | ||
GLenum | , | ||
target | |||
) |
blender::gpu::debug::DEBUG_FUNC_DECLARE | ( | PFNGLUSEPROGRAMPROC | , |
void | , | ||
glUseProgram | , | ||
GLuint | , | ||
program | |||
) |
void blender::gpu::debug::init_debug_layer | ( | ) |
Initialize a fallback layer (to KHR_debug) that covers only some functions. We override the functions pointers by our own implementation that just checks #glGetError. Some additional functions (not overridable) are covered inside the header using wrappers.
Definition at line 92 of file gl_debug_layer.cc.
References DEBUG_WRAP.
Referenced by init_gl_callbacks().
void blender::gpu::debug::init_gl_callbacks | ( | ) |
This function needs to be called once per context.
Definition at line 134 of file gl_debug.cc.
References CLOG_ENSURE, CLOG_STR_WARN, debug_callback(), glEnable, init_debug_layer(), LOG, and SNPRINTF.
Referenced by blender::gpu::GLContext::GLContext().
void blender::gpu::debug::mtl_debug_init | ( | ) |
Definition at line 30 of file mtl_debug.mm.
References CLOG_ENSURE, and LOG.
Referenced by blender::gpu::MTLContext::MTLContext().
void blender::gpu::debug::object_label | ( | GLenum | type, |
GLuint | object, | ||
const char * | name | ||
) |
Definition at line 328 of file gl_debug.cc.
References G, G_DEBUG_GPU, label, SNPRINTF, to_str_prefix(), to_str_suffix(), and type.
Referenced by blender::gpu::GLFrameBuffer::GLFrameBuffer(), blender::gpu::GLImmediate::GLImmediate(), blender::gpu::GLShader::GLShader(), blender::gpu::GLTexture::init_internal(), and blender::gpu::GLTexture::samplers_init().
void blender::gpu::debug::raise_gl_error | ( | const char * | info | ) |
Definition at line 275 of file gl_debug.cc.
References debug_callback().
Referenced by blender::gpu::GLTexture::check_feedback_loop(), and blender::gpu::GLTexture::update_sub().
|
static |
|
static |
CLG_LogRef blender::gpu::debug::LOG = {"gpu.debug.metal"} |
Definition at line 28 of file mtl_debug.mm.
Referenced by debug_callback(), init_gl_callbacks(), and mtl_debug_init().