Blender  V3.3
Macros | Functions
GPU_debug.h File Reference
#include "BLI_sys_types.h"

Go to the source code of this file.

Macros

#define GPU_DEBUG_SHADER_COMPILATION_GROUP   "Shader Compilation"
 

Functions

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

Detailed Description

Helpers for GPU / drawing debugging.

Definition in file GPU_debug.h.

Macro Definition Documentation

◆ GPU_DEBUG_SHADER_COMPILATION_GROUP

#define GPU_DEBUG_SHADER_COMPILATION_GROUP   "Shader Compilation"

Definition at line 18 of file GPU_debug.h.

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().