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

#include <GPU_context.hh>

Public Member Functions

GPUSecondaryContext
 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 115 of file GPU_context.hh.

Constructor & Destructor Documentation

◆ GPUSecondaryContext()

◆ ~GPUSecondaryContext()

Member Function Documentation

◆ activate()

void GPUSecondaryContext::activate ( )

Must be called from a secondary thread.

Definition at line 649 of file gpu_context.cc.

References BLI_assert, BLI_thread_is_main(), GHOST_ActivateGPUContext(), and GPU_context_active_set().


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