|
Blender V5.0
|
#include "BKE_material.hh"#include "GPU_batch.hh"#include "GPU_init_exit.hh"#include "GPU_pass.hh"#include "intern/gpu_private.hh"#include "intern/gpu_shader_create_info_private.hh"#include "intern/gpu_shader_dependency_private.hh"Go to the source code of this file.
Functions | |
| void | GPU_init () |
| void | GPU_exit () |
| bool | GPU_is_init () |
Variables | |
| static bool | initialized = false |
| void GPU_exit | ( | ) |
Definition at line 45 of file gpu_init_exit.cc.
References BKE_material_defaults_free_gpu(), gpu_backend_delete_resources(), gpu_batch_exit(), GPU_pass_cache_free(), gpu_shader_create_info_exit(), gpu_shader_dependency_exit(), GPU_shader_free_builtin_shaders(), and initialized.
Referenced by multitestapp_free(), blender::gpu::GPUTest::TearDownTestSuite(), WM_exit_ex(), and wm_main_playanim_intern().
| void GPU_init | ( | ) |
Definition at line 25 of file gpu_init_exit.cc.
References gpu_backend_init_resources(), gpu_batch_init(), GPU_pass_cache_init(), GPU_shader_builtin_warm_up(), gpu_shader_create_info_init(), gpu_shader_dependency_init(), and initialized.
Referenced by extrawindow_new(), loggerwindow_new(), mainwindow_new(), blender::gpu::GPUTest::SetUpTestSuite(), WM_init_gpu(), wm_main_playanim_intern(), and wm_window_ghostwindow_add().
| bool GPU_is_init | ( | ) |
Definition at line 62 of file gpu_init_exit.cc.
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 23 of file gpu_init_exit.cc.
Referenced by BLI_init_srgb_conversion(), device_cuda_init(), device_hip_init(), ensure_mmap_initialized(), gpencil_frame_mirror_marker(), GPU_exit(), GPU_init(), GPU_is_init(), and blender::eevee::VelocityModule::step_camera_sync().