Blender
V5.0
source
blender
gpu
intern
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
18
namespace
blender::gpu
{
19
20
class
GPUPlatformGlobal
{
21
public
:
22
bool
initialized
=
false
;
23
GPUDeviceType
device
;
24
GPUOSType
os
;
25
GPUDriverType
driver
;
26
GPUSupportLevel
support_level
;
27
char
*
vendor
=
nullptr
;
28
char
*
renderer
=
nullptr
;
29
char
*
version
=
nullptr
;
30
char
*
support_key
=
nullptr
;
31
char
*
gpu_name
=
nullptr
;
32
GPUBackendType
backend
=
GPU_BACKEND_NONE
;
33
GPUArchitectureType
architecture_type
=
GPU_ARCHITECTURE_IMR
;
34
Vector<GPUDevice>
devices
;
35
36
/* The UUID of the device. Can be an empty array, since it is not supported on all platforms. */
37
Array<uint8_t, 16>
device_uuid
;
38
/* The LUID of the device. Can be an empty array, since it is not supported on all platforms. */
39
Array<uint8_t, 8>
device_luid
;
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. */
42
uint32_t
device_luid_node_mask
;
43
44
void
init
(
GPUDeviceType
gpu_device,
45
GPUOSType
os_type,
46
GPUDriverType
driver_type,
47
GPUSupportLevel
gpu_support_level,
48
GPUBackendType
backend
,
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
57
extern
GPUPlatformGlobal
GPG
;
58
59
}
// namespace blender::gpu
BLI_array.hh
BLI_vector.hh
GPU_platform.hh
GPUDeviceType
GPUDeviceType
Definition
GPU_platform.hh:23
GPUArchitectureType
GPUArchitectureType
Definition
GPU_platform.hh:57
GPU_ARCHITECTURE_IMR
@ GPU_ARCHITECTURE_IMR
Definition
GPU_platform.hh:61
GPUSupportLevel
GPUSupportLevel
Definition
GPU_platform.hh:51
GPUDriverType
GPUDriverType
Definition
GPU_platform.hh:44
GPUOSType
GPUOSType
Definition
GPU_platform.hh:37
GPUBackendType
GPUBackendType
Definition
GPU_platform_backend_enum.h:12
GPU_BACKEND_NONE
@ GPU_BACKEND_NONE
Definition
GPU_platform_backend_enum.h:13
init
void init()
blender::Array
Definition
BLI_array.hh:50
blender::Vector
Definition
BLI_vector.hh:76
blender::gpu::GPUPlatformGlobal
Definition
gpu_platform_private.hh:20
blender::gpu::GPUPlatformGlobal::device_luid_node_mask
uint32_t device_luid_node_mask
Definition
gpu_platform_private.hh:42
blender::gpu::GPUPlatformGlobal::devices
Vector< GPUDevice > devices
Definition
gpu_platform_private.hh:34
blender::gpu::GPUPlatformGlobal::os
GPUOSType os
Definition
gpu_platform_private.hh:24
blender::gpu::GPUPlatformGlobal::driver
GPUDriverType driver
Definition
gpu_platform_private.hh:25
blender::gpu::GPUPlatformGlobal::initialized
bool initialized
Definition
gpu_platform_private.hh:22
blender::gpu::GPUPlatformGlobal::support_key
char * support_key
Definition
gpu_platform_private.hh:30
blender::gpu::GPUPlatformGlobal::device_uuid
Array< uint8_t, 16 > device_uuid
Definition
gpu_platform_private.hh:37
blender::gpu::GPUPlatformGlobal::renderer
char * renderer
Definition
gpu_platform_private.hh:28
blender::gpu::GPUPlatformGlobal::backend
GPUBackendType backend
Definition
gpu_platform_private.hh:32
blender::gpu::GPUPlatformGlobal::clear
void clear()
Definition
gpu_platform.cc:101
blender::gpu::GPUPlatformGlobal::version
char * version
Definition
gpu_platform_private.hh:29
blender::gpu::GPUPlatformGlobal::device_luid
Array< uint8_t, 8 > device_luid
Definition
gpu_platform_private.hh:39
blender::gpu::GPUPlatformGlobal::support_level
GPUSupportLevel support_level
Definition
gpu_platform_private.hh:26
blender::gpu::GPUPlatformGlobal::gpu_name
char * gpu_name
Definition
gpu_platform_private.hh:31
blender::gpu::GPUPlatformGlobal::vendor
char * vendor
Definition
gpu_platform_private.hh:27
blender::gpu::GPUPlatformGlobal::architecture_type
GPUArchitectureType architecture_type
Definition
gpu_platform_private.hh:33
blender::gpu::GPUPlatformGlobal::device
GPUDeviceType device
Definition
gpu_platform_private.hh:23
blender::gpu
Definition
blf_internal_types.hh:32
blender::gpu::GPG
GPUPlatformGlobal GPG
Definition
gpu_platform.cc:31
Generated on
for Blender by
doxygen
1.16.1