|
Blender V4.3
|
#include "GPU_init_exit.hh"#include "BLI_sys_types.h"#include "GPU_batch.hh"#include "intern/gpu_codegen.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 41 of file gpu_init_exit.cc.
References gpu_backend_delete_resources(), gpu_batch_exit(), gpu_codegen_exit(), gpu_shader_create_info_exit(), gpu_shader_dependency_exit(), and initialized.
Referenced by blender::gpu::shader_builder::ShaderBuilder::exit_context(), multitestapp_free(), blender::gpu::GPUTest::TearDown(), WM_exit_ex(), and wm_main_playanim_intern().
| void GPU_init | ( | ) |
Definition at line 24 of file gpu_init_exit.cc.
References gpu_batch_init(), gpu_codegen_init(), gpu_shader_create_info_init(), gpu_shader_dependency_init(), and initialized.
Referenced by extrawindow_new(), blender::gpu::shader_builder::ShaderBuilder::init_context(), loggerwindow_new(), mainwindow_new(), blender::gpu::GPUTest::SetUp(), WM_init_gpu(), wm_main_playanim_intern(), and wm_window_ghostwindow_add().
| bool GPU_is_init | ( | ) |
Definition at line 55 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 22 of file gpu_init_exit.cc.
Referenced by BLI_init_srgb_conversion(), device_cuda_init(), device_hip_init(), DRW_shader_init(), gpencil_frame_mirror_marker(), GPU_exit(), GPU_init(), GPU_is_init(), and blender::eevee::VelocityModule::step_camera_sync().