Blender V5.0
gpu_init_exit.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2013 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include "BKE_material.hh"
10
11#include "GPU_batch.hh"
12#include "GPU_init_exit.hh" /* interface */
13#include "GPU_pass.hh"
14
15#include "intern/gpu_private.hh"
18
23static bool initialized = false;
24
26{
27 /* can't avoid calling this multiple times, see wm_window_ghostwindow_add */
28 if (initialized) {
29 return;
30 }
31
32 initialized = true;
33
35
38
41
43}
44
61
63{
64 return initialized;
65}
General operations, lookup, etc. for materials.
void BKE_material_defaults_free_gpu()
void gpu_batch_init()
Definition gpu_batch.cc:536
void gpu_batch_exit()
Definition gpu_batch.cc:541
void GPU_pass_cache_init()
Definition gpu_pass.cc:298
void GPU_pass_cache_free()
Definition gpu_pass.cc:314
void GPU_shader_builtin_warm_up()
void GPU_shader_free_builtin_shaders()
void gpu_backend_delete_resources()
void gpu_backend_init_resources()
void GPU_init()
bool GPU_is_init()
void GPU_exit()
static bool initialized
void gpu_shader_create_info_exit()
void gpu_shader_create_info_init()
void gpu_shader_dependency_init()
void gpu_shader_dependency_exit()