$darkmode
#include "gl_debug.h"#include "gl_common.h"#include "log.h"#include "utils.h"#include <stdint.h>Data Structures | |
| struct | DebugMessageEntry |
Macros | |
| #define | LOG_TAG "OpenGL Debug" |
Enumerations | |
| enum | { DEBUG_HASH_SIZE = 1024 } |
Functions | |
| static uint32_t | hash_id (GLuint message_id) |
| static const char * | get_source_str (GLenum source) |
| static const char * | get_type_str (GLenum type) |
| static const char * | get_severity_str (GLenum severity) |
| static void APIENTRY | gl_debug_callback (GLenum source, GLenum type, GLuint message_id, GLenum severity, GLsizei length, const GLchar *message, const void *user_param) |
| void | setup_opengl_debug (void) |
| Configures OpenGL debug callback. More... | |
| void | gl_debug_push_group (const char *name) |
| Push a named debug group onto the OpenGL debug stack. More... | |
| void | gl_debug_pop_group (void) |
| Pop the current debug group from the OpenGL debug stack. More... | |
| #define LOG_TAG "OpenGL Debug" |
|
static |
|
static |
|
static |
|
static |
| void gl_debug_pop_group | ( | void | ) |
Pop the current debug group from the OpenGL debug stack.
Wraps glPopDebugGroup(). Must be paired with gl_debug_push_group().
| void gl_debug_push_group | ( | const char * | name | ) |
Push a named debug group onto the OpenGL debug stack.
Wraps glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, name). These groups appear as hierarchical regions in RenderDoc's Event Browser.
| name | Human-readable label for the debug region. |
|
static |
| void setup_opengl_debug | ( | void | ) |
Configures OpenGL debug callback.
Enables GL_DEBUG_OUTPUT and GL_DEBUG_OUTPUT_SYNCHRONOUS, then registers a callback that logs messages via log.h.