Blender V5.0
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
8
9#pragma once
10
11#include <cstdint>
12
13#include "BLI_array.hh"
14#include "BLI_vector.hh"
15
16#include "GPU_platform.hh"
17
18namespace blender::gpu {
19
21 public:
22 bool initialized = false;
27 char *vendor = nullptr;
28 char *renderer = nullptr;
29 char *version = nullptr;
30 char *support_key = nullptr;
31 char *gpu_name = nullptr;
35
36 /* The UUID of the device. Can be an empty array, since it is not supported on all platforms. */
38 /* The LUID of the device. Can be an empty array, since it is not supported on all platforms. */
40 /* A bit field with the nth bit active identifying the nth device with the same LUID. Only
41 * matters if device_luid is defined. */
43
44 void init(GPUDeviceType gpu_device,
45 GPUOSType os_type,
46 GPUDriverType driver_type,
47 GPUSupportLevel gpu_support_level,
49 const char *vendor_str,
50 const char *renderer_str,
51 const char *version_str,
52 GPUArchitectureType arch_type);
53
54 void clear();
55};
56
58
59} // namespace blender::gpu
GPUDeviceType
GPUArchitectureType
@ GPU_ARCHITECTURE_IMR
GPUSupportLevel
GPUDriverType
GPUOSType
void init()
GPUPlatformGlobal GPG