Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_context.h
| Show All 15 Lines | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /* GPU back-ends abstract the differences between different APIs. #GPU_context_create | /* GPU back-ends abstract the differences between different APIs. #GPU_context_create | ||||
| * 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); | ||||
| void GPU_backend_type_selection_set(const eGPUBackendType backend); | |||||
jbakker: selection is a wrong name.
GPU_backend_default_type_get/set? | |||||
| eGPUBackendType GPU_backend_type_selection_get(void); | |||||
| eGPUBackendType GPU_backend_get_type(void); | eGPUBackendType GPU_backend_get_type(void); | ||||
Not Done Inline ActionsShould we rename this to GPU_backend_active_type_get jbakker: Should we rename this to `GPU_backend_active_type_get`
| |||||
| /** 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, void *ghost_context); | 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). | ||||
| */ | */ | ||||
| Show All 34 Lines | |||||
selection is a wrong name.
GPU_backend_default_type_get/set?