Blender V4.5
gl_debug.hh File Reference
#include "gl_context.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::gpu
 
namespace  blender::gpu::debug
 

Macros

#define GL_CHECK_RESOURCES(info)   debug::check_gl_resources(info)
 

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::raise_gl_error (const char *info)
 
void blender::gpu::debug::check_gl_error (const char *info)
 
void blender::gpu::debug::check_gl_resources (const char *info)
 
Debug Callbacks

Hooks up debug callbacks to a debug OpenGL context using extensions or 4.3 core debug capabilities.

void blender::gpu::debug::init_gl_callbacks ()
 
Object Label

Useful for debugging through render-doc. Only defined if using --debug-gpu. Make sure to bind the object first so that it gets defined by the GL implementation.

void blender::gpu::debug::object_label (GLenum type, GLuint object, const char *name)
 

Macro Definition Documentation

◆ GL_CHECK_RESOURCES