Blender V5.0
blender::gpu::DebugScope Struct Reference

#include <GPU_debug.hh>

Classes

struct  ScopedCapture

Public Member Functions

 DebugScope (const char *identifier)
void begin_capture ()
void end_capture ()
ScopedCapture scoped_capture ()

Public Attributes

void * scope

Detailed Description

Need to be declared as static with a unique identifier string.

Definition at line 117 of file GPU_debug.hh.

Constructor & Destructor Documentation

◆ DebugScope()

blender::gpu::DebugScope::DebugScope ( const char * identifier)
inline

Definition at line 120 of file GPU_debug.hh.

References GPU_debug_capture_scope_create(), and scope.

Member Function Documentation

◆ begin_capture()

void blender::gpu::DebugScope::begin_capture ( )
inline

Definition at line 125 of file GPU_debug.hh.

References GPU_debug_capture_scope_begin(), and scope.

Referenced by blender::draw::overlay::Instance::draw().

◆ end_capture()

void blender::gpu::DebugScope::end_capture ( )
inline

Definition at line 130 of file GPU_debug.hh.

References GPU_debug_capture_scope_end(), and scope.

Referenced by blender::draw::overlay::Instance::draw().

◆ scoped_capture()

ScopedCapture blender::gpu::DebugScope::scoped_capture ( )
inline

Definition at line 149 of file GPU_debug.hh.

References scope.

Referenced by blender::draw::mesh_buffer_cache_create_requested_subdiv().

Member Data Documentation

◆ scope

void* blender::gpu::DebugScope::scope

Definition at line 118 of file GPU_debug.hh.

Referenced by begin_capture(), DebugScope(), end_capture(), and scoped_capture().


The documentation for this struct was generated from the following file: