Blender V4.3
gpu_platform_private.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2020 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "BLI_vector.hh"
12
13#include "GPU_platform.hh"
14
15namespace blender::gpu {
16
18 public:
19 bool initialized = false;
24 char *vendor = nullptr;
25 char *renderer = nullptr;
26 char *version = nullptr;
27 char *support_key = nullptr;
28 char *gpu_name = nullptr;
32
33 public:
34 void init(eGPUDeviceType gpu_device,
35 eGPUOSType os_type,
36 eGPUDriverType driver_type,
37 eGPUSupportLevel gpu_support_level,
39 const char *vendor_str,
40 const char *renderer_str,
41 const char *version_str,
42 GPUArchitectureType arch_type);
43
44 void clear();
45};
46
48
49} // namespace blender::gpu
eGPUDriverType
GPUArchitectureType
@ GPU_ARCHITECTURE_IMR
eGPUSupportLevel
eGPUOSType
eGPUDeviceType
void init()
GPUPlatformGlobal GPG