|
Blender V4.3
|
Classes | |
| class | VKDebuggingTools |
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) | |
| void | object_label (VkObjectType vk_object_type, uint64_t object_handle, const char *name) |
| static VKAPI_ATTR VkBool32 VKAPI_CALL | messenger_callback (VkDebugUtilsMessageSeverityFlagBitsEXT message_severity, VkDebugUtilsMessageTypeFlagsEXT, const VkDebugUtilsMessengerCallbackDataEXT *callback_data, void *user_data) |
| template<typename T > | |
| void | object_label (T vk_object_type, const char *name) |
| void | raise_message (int32_t id_number, VkDebugUtilsMessageSeverityFlagBitsEXT vk_severity_flag_bits, const char *fmt,...) ATTR_PRINTF_FORMAT(3 |
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, GLenum type, GLuint, GLenum severity, GLsizei, const GLchar *message, const GLvoid *) |
| 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 182 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 215 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 |
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, and CLG_LogRef::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 93 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 135 of file gl_debug.cc.
References CLOG_ENSURE, CLOG_STR_WARN, debug_callback(), init_debug_layer(), LOG, and SNPRINTF.
Referenced by blender::gpu::GLContext::GLContext().
|
static |
Definition at line 155 of file vk_debug.cc.
References CLG_FLAG_USE, CLG_logf(), CLG_SEVERITY_ERROR, CLG_SEVERITY_INFO, CLG_SEVERITY_WARN, LOG, messenger_callback(), and blender::gpu::debug::VKDebuggingTools::print_labels().
Referenced by blender::gpu::debug::VKDebuggingTools::init_messenger(), and messenger_callback().
| void blender::gpu::debug::mtl_debug_init | ( | ) |
Definition at line 32 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 344 of file gl_debug.cc.
References G, G_DEBUG_GPU, label, SNPRINTF, to_str_prefix(), and to_str_suffix().
Referenced by blender::gpu::GLStorageBuf::async_flush_to_host(), blender::gpu::VKSampler::create(), blender::gpu::VKDrawList::create_resource(), blender::gpu::VKVertexBuffer::ensure_buffer_view(), blender::gpu::VKShaderModule::finalize(), blender::gpu::GLFrameBuffer::GLFrameBuffer(), blender::gpu::GLImmediate::GLImmediate(), blender::gpu::VKDevice::init(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), object_label(), object_label(), blender::gpu::GLTexture::samplers_init(), blender::gpu::VKDescriptorSetTracker::update_descriptor_set(), blender::gpu::VKImageView::VKImageView(), blender::gpu::VKPixelBuffer::VKPixelBuffer(), and blender::gpu::VKStagingBuffer::VKStagingBuffer().
| void blender::gpu::debug::object_label | ( | T | vk_object_type, |
| const char * | name ) |
Definition at line 37 of file vk_debug.hh.
References G, G_DEBUG_GPU, label, object_label(), SNPRINTF, and blender::gpu::to_vk_object_type().
| void blender::gpu::debug::object_label | ( | VkObjectType | vk_object_type, |
| uint64_t | object_handle, | ||
| const char * | name ) |
Definition at line 111 of file vk_debug.cc.
References blender::gpu::VKDevice::functions, G, G_DEBUG_GPU, object_label(), blender::gpu::VKDevice::vk_handle(), and blender::gpu::VKDevice::vkSetDebugUtilsObjectName.
| void blender::gpu::debug::raise_gl_error | ( | const char * | info | ) |
Definition at line 291 of file gl_debug.cc.
References debug_callback().
Referenced by blender::gpu::GLTexture::check_feedback_loop(), and blender::gpu::GLTexture::update_sub().
| void blender::gpu::debug::raise_message | ( | int32_t | id_number, |
| VkDebugUtilsMessageSeverityFlagBitsEXT | vk_severity_flag_bits, | ||
| const char * | fmt, | ||
| ... ) |
How to use:
|
static |
Definition at line 305 of file gl_debug.cc.
Referenced by object_label().
|
static |
Definition at line 330 of file gl_debug.cc.
Referenced by object_label().
| CLG_LogRef blender::gpu::debug::LOG = {"gpu.debug.metal"} |
Definition at line 30 of file mtl_debug.mm.
Referenced by debug_callback(), init_gl_callbacks(), and mtl_debug_init().