Blender V5.3
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
19namespace blender {
20
25static bool initialized = false;
26
28{
29 /* can't avoid calling this multiple times, see wm_window_ghostwindow_add */
30 if (initialized) {
31 return;
32 }
33
34 initialized = true;
35
37
40
43
45}
46
63
65{
66 return initialized;
67}
68
69} // namespace blender
General operations, lookup, etc. for materials.
BMesh Iterators.
void GPU_shader_builtin_warm_up()
void GPU_exit()
void GPU_shader_free_builtin_shaders()
void gpu_shader_create_info_init()
void gpu_shader_dependency_exit()
void gpu_shader_create_info_exit()
void GPU_init()
void gpu_backend_delete_resources()
void GPU_pass_cache_init()
Definition gpu_pass.cc:310
void GPU_pass_cache_free()
Definition gpu_pass.cc:326
void gpu_shader_dependency_init()
void gpu_backend_init_resources()
static bool initialized
void gpu_batch_exit()
Definition gpu_batch.cc:544
void gpu_batch_init()
Definition gpu_batch.cc:539
bool GPU_is_init()