Blender  V3.3
Functions
gpu_debug.cc File Reference
#include "BKE_global.h"
#include "BLI_string.h"
#include "gpu_context_private.hh"
#include "GPU_debug.h"

Go to the source code of this file.

Functions

void GPU_debug_group_begin (const char *name)
 
void GPU_debug_group_end ()
 
void GPU_debug_get_groups_names (int name_buf_len, char *r_name_buf)
 
bool GPU_debug_group_match (const char *ref)
 

Detailed Description

Debug features of OpenGL.

Definition in file gpu_debug.cc.

Function Documentation

◆ GPU_debug_get_groups_names()

void GPU_debug_get_groups_names ( int  name_buf_len,
char *  r_name_buf 
)

Return a formatted string showing the current group hierarchy in this format: "Group1 > Group 2 > Group3 > ... > GroupN : "

Definition at line 42 of file gpu_debug.cc.

References BLI_snprintf_rlen(), blender::gpu::Context::debug_stack, blender::gpu::Context::get(), len, and blender::Vector< T, InlineBufferCapacity, Allocator >::size().

Referenced by blender::gpu::debug::debug_callback().

◆ GPU_debug_group_begin()

void GPU_debug_group_begin ( const char *  name)

◆ GPU_debug_group_end()

void GPU_debug_group_end ( void  )

◆ GPU_debug_group_match()

bool GPU_debug_group_match ( const char *  ref)

Return true if inside a debug group with the same name.

Definition at line 60 of file gpu_debug.cc.

References BLI_assert, blender::gpu::Context::debug_stack, G, G_DEBUG_GPU, and blender::gpu::Context::get().

Referenced by blender::gpu::debug::debug_callback().