|
Blender V5.3
|
Public Member Functions | |
| ContextShared () | |
| ~ContextShared () | |
| void | enable () |
| bool | is_enabled () |
| void | disable (bool restore=false) |
Public Attributes | |
| TicketMutex * | mutex_ = nullptr |
| GHOST_IContext * | system_gpu_context_ = nullptr |
| GPUContext * | blender_gpu_context_ = nullptr |
Definition at line 83 of file draw_gpu_context.cc.
|
inline |
Definition at line 93 of file draw_gpu_context.cc.
References blender_gpu_context_, blender::BLI_ticket_mutex_alloc(), blender::GPU_context_create(), mutex_, system_gpu_context_, blender::WM_system_gpu_context_activate(), and blender::WM_system_gpu_context_create().
|
inline |
Definition at line 102 of file draw_gpu_context.cc.
References blender_gpu_context_, blender::BLI_ticket_mutex_free(), blender::GPU_context_active_set(), blender::GPU_context_discard(), mutex_, system_gpu_context_, blender::WM_system_gpu_context_activate(), and blender::WM_system_gpu_context_dispose().
|
inline |
Definition at line 134 of file draw_gpu_context.cc.
References blender_gpu_context_, blender::BLI_thread_is_main(), blender::BLI_ticket_mutex_unlock(), blender::DRW_lock_end(), blender::GPU_context_active_set(), blender::GPU_context_end_frame(), blender::GPU_render_end(), mutex_, system_gpu_context_, blender::WM_system_gpu_context_release(), and blender::wm_window_reset_drawable().
Referenced by blender::DRW_gpu_context_disable_ex(), and blender::drw_gpu_preview_context_disable().
|
inline |
Definition at line 113 of file draw_gpu_context.cc.
References blender_gpu_context_, blender::BLI_ticket_mutex_lock(), blender::DRW_lock_start(), blender::GPU_context_active_set(), blender::GPU_context_begin_frame(), blender::GPU_render_begin(), mutex_, system_gpu_context_, and blender::WM_system_gpu_context_activate().
Referenced by blender::DRW_gpu_context_create(), blender::DRW_gpu_context_enable_ex(), and blender::drw_gpu_preview_context_enable().
|
inline |
Definition at line 128 of file draw_gpu_context.cc.
References blender_gpu_context_, and blender::GPU_context_active_get().
Referenced by blender::DRW_gpu_context_is_enabled().
| GPUContext* blender::ContextShared::blender_gpu_context_ = nullptr |
GPUContext associated to the system_gpu_context.
Definition at line 90 of file draw_gpu_context.cc.
Referenced by ContextShared(), disable(), blender::DRW_gpu_context_activate(), blender::DRW_gpu_context_release(), enable(), is_enabled(), and ~ContextShared().
| TicketMutex* blender::ContextShared::mutex_ = nullptr |
Definition at line 86 of file draw_gpu_context.cc.
Referenced by ContextShared(), disable(), enable(), and ~ContextShared().
| GHOST_IContext* blender::ContextShared::system_gpu_context_ = nullptr |
Unique ghost context used by Viewports.
Definition at line 88 of file draw_gpu_context.cc.
Referenced by ContextShared(), disable(), blender::DRW_gpu_context_activate(), blender::DRW_gpu_context_release(), enable(), and ~ContextShared().