Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_context.h
| Show All 20 Lines | |||||
| * automatically initializes the back-end, and #GPU_context_discard frees it when there | * automatically initializes the back-end, and #GPU_context_discard frees it when there | ||||
| * are no more contexts. */ | * are no more contexts. */ | ||||
| bool GPU_backend_supported(void); | bool GPU_backend_supported(void); | ||||
| eGPUBackendType GPU_backend_get_type(void); | eGPUBackendType GPU_backend_get_type(void); | ||||
| /** Opaque type hiding blender::gpu::Context. */ | /** Opaque type hiding blender::gpu::Context. */ | ||||
| typedef struct GPUContext GPUContext; | typedef struct GPUContext GPUContext; | ||||
| GPUContext *GPU_context_create(void *ghost_window); | GPUContext *GPU_context_create(void *ghost_window, void *ghost_context); | ||||
| /** | /** | ||||
| * To be called after #GPU_context_active_set(ctx_to_destroy). | * To be called after #GPU_context_active_set(ctx_to_destroy). | ||||
| */ | */ | ||||
| void GPU_context_discard(GPUContext *); | void GPU_context_discard(GPUContext *); | ||||
| /** | /** | ||||
| * Ctx can be NULL. | * Ctx can be NULL. | ||||
| */ | */ | ||||
| Show All 29 Lines | |||||