Blender V5.0
ContextShared Class Reference

Public Member Functions

 ContextShared ()
 ~ContextShared ()
void enable ()
bool is_enabled ()
void disable (bool restore=false)

Public Attributes

TicketMutexmutex_ = nullptr
void * system_gpu_context_ = nullptr
GPUContext * blender_gpu_context_ = nullptr

Detailed Description

Definition at line 81 of file draw_gpu_context.cc.

Constructor & Destructor Documentation

◆ ContextShared()

◆ ~ContextShared()

Member Function Documentation

◆ disable()

◆ enable()

◆ is_enabled()

bool ContextShared::is_enabled ( )
inline

Definition at line 126 of file draw_gpu_context.cc.

References blender_gpu_context_, and GPU_context_active_get().

Member Data Documentation

◆ blender_gpu_context_

GPUContext* ContextShared::blender_gpu_context_ = nullptr

GPUContext associated to the system_gpu_context.

Definition at line 88 of file draw_gpu_context.cc.

Referenced by ContextShared(), disable(), enable(), is_enabled(), and ~ContextShared().

◆ mutex_

TicketMutex* ContextShared::mutex_ = nullptr

Definition at line 84 of file draw_gpu_context.cc.

Referenced by ContextShared(), disable(), enable(), and ~ContextShared().

◆ system_gpu_context_

void* ContextShared::system_gpu_context_ = nullptr

Unique ghost context used by Viewports.

Definition at line 86 of file draw_gpu_context.cc.

Referenced by ContextShared(), disable(), enable(), and ~ContextShared().


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