|
Blender V5.3
|
#include <GPU_context.hh>
Public Member Functions | |
| GPUSecondaryContext () | |
| ~GPUSecondaryContext () | |
| void | activate () |
Abstracts secondary GHOST and GPU context creation, activation and deletion. Must be created from the main thread and destructed from the thread they where activated in. (See GPUWorker for an usage example)
Definition at line 183 of file GPU_context.hh.
| blender::gpu::GPUSecondaryContext::GPUSecondaryContext | ( | ) |
Definition at line 767 of file gpu_context.cc.
References blender::gpu::GPU_create_secondary_context(), and GPUSecondaryContext().
Referenced by GPUSecondaryContext().
| blender::gpu::GPUSecondaryContext::~GPUSecondaryContext | ( | ) |
Definition at line 772 of file gpu_context.cc.
References blender::BLI_assert(), blender::BLI_thread_is_main(), GHOST_ISystem::disposeContext(), blender::GPU_backend_ghost_system_get(), blender::GPU_context_discard(), and ~GPUSecondaryContext().
Referenced by ~GPUSecondaryContext().
| void blender::gpu::GPUSecondaryContext::activate | ( | ) |
Must be called from a secondary thread.
Definition at line 786 of file gpu_context.cc.
References activate(), blender::BLI_assert(), blender::BLI_thread_is_main(), and blender::GPU_context_active_set().
Referenced by activate().