Blender V5.3
blender::gpu::GPUSecondaryContext Class Reference

#include <GPU_context.hh>

Public Member Functions

 GPUSecondaryContext ()
 ~GPUSecondaryContext ()
void activate ()

Detailed Description

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.

Constructor & Destructor Documentation

◆ GPUSecondaryContext()

blender::gpu::GPUSecondaryContext::GPUSecondaryContext ( )

◆ ~GPUSecondaryContext()

Member Function Documentation

◆ activate()

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().


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