|
Blender
V2.93
|
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) |
| GPUContext * | GPU_context_create (void *ghost_window) |
| void | GPU_context_discard (GPUContext *) |
| void | GPU_context_active_set (GPUContext *) |
| GPUContext * | GPU_context_active_get (void) |
| void | GPU_context_main_lock (void) |
| void | GPU_context_main_unlock (void) |
This interface allow GPU to manage VAOs for multiple context and threads.
Definition in file GPU_context.h.
| typedef enum eGPUBackendType eGPUBackendType |
| typedef struct GPUContext GPUContext |
Opaque type hiding blender::gpu::Context.
Definition at line 41 of file GPU_context.h.
| enum eGPUBackendType |
| Enumerator | |
|---|---|
| GPU_BACKEND_NONE | |
| GPU_BACKEND_OPENGL | |
Definition at line 35 of file GPU_context.h.
| 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().
| 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().
| GPUContext* GPU_context_active_get | ( | void | ) |
Definition at line 136 of file gpu_context.cc.
References blender::gpu::wrap().
Referenced by pygpu_framebuffer__tp_new(), pygpu_offscreen__tp_new(), pygpu_texture__tp_new(), and pygpu_uniformbuffer__tp_new().
| void GPU_context_active_set | ( | GPUContext * | ctx_ | ) |
Definition at line 121 of file gpu_context.cc.
References blender::gpu::Context::activate(), active_ctx, blender::gpu::Context::deactivate(), and blender::gpu::unwrap().
Referenced by drw_deferred_shader_add(), drw_deferred_shader_compilation_exec(), drw_deferred_shader_compilation_free(), DRW_gpu_render_context_disable(), DRW_gpu_render_context_enable(), DRW_opengl_context_destroy(), DRW_opengl_context_disable_ex(), DRW_opengl_context_enable_ex(), extrawindow_do_draw(), extrawindow_do_reshape(), GPU_context_create(), loggerwindow_do_draw(), loggerwindow_do_reshape(), mainwindow_do_draw(), mainwindow_do_reshape(), RE_gl_context_destroy(), wm_ghostwindow_destroy(), wm_main_playanim_intern(), wm_surface_clear_drawable(), wm_surface_set_drawable(), WM_window_pixel_sample_read(), WM_window_pixels_read(), and wm_window_set_drawable().
| GPUContext* GPU_context_create | ( | void * | ghost_window | ) |
Definition at line 99 of file gpu_context.cc.
References GPU_backend_init(), GPU_BACKEND_OPENGL, GPU_context_active_set(), and blender::gpu::wrap().
Referenced by drw_deferred_shader_add(), DRW_opengl_context_create(), eevee_lightbake_context_enable(), extrawindow_new(), loggerwindow_new(), mainwindow_new(), RE_gpu_context_get(), blender::gpu::GPUTest::SetUp(), wm_main_playanim_intern(), and wm_window_ghostwindow_add().
| void GPU_context_discard | ( | GPUContext * | ctx_ | ) |
Definition at line 113 of file gpu_context.cc.
References active_ctx, and blender::gpu::unwrap().
Referenced by drw_deferred_shader_compilation_free(), DRW_opengl_context_destroy(), eevee_lightbake_delete_resources(), RE_gl_context_destroy(), blender::gpu::GPUTest::TearDown(), wm_ghostwindow_destroy(), and wm_main_playanim_intern().
| void GPU_context_main_lock | ( | void | ) |
Definition at line 149 of file gpu_context.cc.
References main_context_mutex.
Referenced by drw_deferred_shader_compilation_exec(), DRW_render_context_enable(), eevee_lightbake_context_enable(), and wm_draw_update().
| void GPU_context_main_unlock | ( | void | ) |
Definition at line 154 of file gpu_context.cc.
References main_context_mutex.
Referenced by drw_deferred_shader_compilation_exec(), DRW_render_context_disable(), eevee_lightbake_context_disable(), and wm_draw_update().