|
Blender
V2.93
|
#include "GPU_init_exit.h"#include "BKE_global.h"#include "BLI_sys_types.h"#include "GPU_batch.h"#include "GPU_buffers.h"#include "GPU_context.h"#include "GPU_immediate.h"#include "intern/gpu_codegen.h"#include "intern/gpu_material_library.h"#include "intern/gpu_private.h"Go to the source code of this file.
Functions | |
| void | GPU_init (void) |
| void | GPU_exit (void) |
| bool | GPU_is_init (void) |
Variables | |
| static bool | initialized = false |
| void GPU_exit | ( | void | ) |
Definition at line 62 of file gpu_init_exit.c.
References gpu_batch_exit(), gpu_codegen_exit(), gpu_material_library_exit(), gpu_pbvh_exit(), and initialized.
Referenced by multitestapp_free(), blender::gpu::GPUTest::TearDown(), WM_exit_ex(), and wm_main_playanim_intern().
| void GPU_init | ( | void | ) |
Definition at line 43 of file gpu_init_exit.c.
References gpu_batch_init(), gpu_codegen_init(), gpu_material_library_init(), gpu_pbvh_init(), and initialized.
Referenced by extrawindow_new(), loggerwindow_new(), mainwindow_new(), blender::gpu::GPUTest::SetUp(), WM_init_opengl(), wm_main_playanim_intern(), and wm_window_ghostwindow_add().
| bool GPU_is_init | ( | void | ) |
Definition at line 76 of file gpu_init_exit.c.
References initialized.
Referenced by bpygpu_is_init_or_error(), pygpu_framebuffer_free_if_possible(), and texture_paint_image_from_view_poll().
|
static |
although the order of initialization and shutdown should not matter (except for the extensions), I chose alphabetical and reverse alphabetical order
Definition at line 41 of file gpu_init_exit.c.
Referenced by BLI_init_srgb_conversion(), gpencil_frame_mirror_marker(), GPU_exit(), GPU_init(), and GPU_is_init().