|
Blender V5.0
|
Public Member Functions | |
| ContextShared () | |
| ~ContextShared () | |
| void | enable () |
| bool | is_enabled () |
| void | disable (bool restore=false) |
Public Attributes | |
| TicketMutex * | mutex_ = nullptr |
| void * | system_gpu_context_ = nullptr |
| GPUContext * | blender_gpu_context_ = nullptr |
Definition at line 81 of file draw_gpu_context.cc.
|
inline |
Definition at line 91 of file draw_gpu_context.cc.
References blender_gpu_context_, BLI_ticket_mutex_alloc(), GPU_context_create(), mutex_, system_gpu_context_, WM_system_gpu_context_activate(), and WM_system_gpu_context_create().
|
inline |
Definition at line 100 of file draw_gpu_context.cc.
References blender_gpu_context_, BLI_ticket_mutex_free(), GPU_context_active_set(), GPU_context_discard(), mutex_, system_gpu_context_, WM_system_gpu_context_activate(), and WM_system_gpu_context_dispose().
|
inline |
Definition at line 132 of file draw_gpu_context.cc.
References blender_gpu_context_, BLI_thread_is_main(), BLI_ticket_mutex_unlock(), DRW_lock_end(), GPU_context_active_set(), GPU_context_end_frame(), GPU_render_end(), mutex_, system_gpu_context_, WM_system_gpu_context_release(), and wm_window_reset_drawable().
|
inline |
Definition at line 111 of file draw_gpu_context.cc.
References blender_gpu_context_, BLI_ticket_mutex_lock(), DRW_lock_start(), GPU_context_active_set(), GPU_context_begin_frame(), GPU_render_begin(), mutex_, system_gpu_context_, and WM_system_gpu_context_activate().
|
inline |
Definition at line 126 of file draw_gpu_context.cc.
References blender_gpu_context_, and GPU_context_active_get().
| 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().
| TicketMutex* ContextShared::mutex_ = nullptr |
Definition at line 84 of file draw_gpu_context.cc.
Referenced by ContextShared(), disable(), enable(), and ~ContextShared().
| 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().