Blender  V2.93
Typedefs | Enumerations | Functions
GPU_context.h File Reference
#include "GPU_batch.h"
#include "GPU_common.h"

Go to the source code of this file.

Typedefs

typedef enum eGPUBackendType eGPUBackendType
 
typedef struct GPUContext GPUContext
 

Enumerations

enum  eGPUBackendType { GPU_BACKEND_NONE = 0 , GPU_BACKEND_OPENGL }
 

Functions

void GPU_backend_init (eGPUBackendType backend)
 
void GPU_backend_exit (void)
 
GPUContextGPU_context_create (void *ghost_window)
 
void GPU_context_discard (GPUContext *)
 
void GPU_context_active_set (GPUContext *)
 
GPUContextGPU_context_active_get (void)
 
void GPU_context_main_lock (void)
 
void GPU_context_main_unlock (void)
 

Detailed Description

This interface allow GPU to manage VAOs for multiple context and threads.

Definition in file GPU_context.h.

Typedef Documentation

◆ eGPUBackendType

◆ GPUContext

typedef struct GPUContext GPUContext

Opaque type hiding blender::gpu::Context.

Definition at line 41 of file GPU_context.h.

Enumeration Type Documentation

◆ eGPUBackendType

Enumerator
GPU_BACKEND_NONE 
GPU_BACKEND_OPENGL 

Definition at line 35 of file GPU_context.h.

Function Documentation

◆ GPU_backend_exit()

void GPU_backend_exit ( void  )

Definition at line 183 of file gpu_context.cc.

References g_backend.

Referenced by blender::gpu::GPUTest::TearDown(), and WM_exit_ex().

◆ GPU_backend_init()

void GPU_backend_init ( eGPUBackendType  backend)

Definition at line 167 of file gpu_context.cc.

References BLI_assert, g_backend, and GPU_BACKEND_OPENGL.

Referenced by GPU_context_create().

◆ GPU_context_active_get()

GPUContext* GPU_context_active_get ( void  )

◆ GPU_context_active_set()

void GPU_context_active_set ( GPUContext ctx_)

◆ GPU_context_create()

GPUContext* GPU_context_create ( void *  ghost_window)

◆ GPU_context_discard()

void GPU_context_discard ( GPUContext ctx_)

◆ GPU_context_main_lock()

void GPU_context_main_lock ( void  )

◆ GPU_context_main_unlock()

void GPU_context_main_unlock ( void  )