Blender
V4.3
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
9
#pragma once
10
11
#include "
BLI_vector.hh
"
12
13
#include "
GPU_platform.hh
"
14
15
namespace
blender::gpu
{
16
17
class
GPUPlatformGlobal
{
18
public
:
19
bool
initialized
=
false
;
20
eGPUDeviceType
device
;
21
eGPUOSType
os
;
22
eGPUDriverType
driver
;
23
eGPUSupportLevel
support_level
;
24
char
*
vendor
=
nullptr
;
25
char
*
renderer
=
nullptr
;
26
char
*
version
=
nullptr
;
27
char
*
support_key
=
nullptr
;
28
char
*
gpu_name
=
nullptr
;
29
eGPUBackendType
backend
=
GPU_BACKEND_NONE
;
30
GPUArchitectureType
architecture_type
=
GPU_ARCHITECTURE_IMR
;
31
Vector<GPUDevice>
devices
;
32
33
public
:
34
void
init
(
eGPUDeviceType
gpu_device,
35
eGPUOSType
os_type,
36
eGPUDriverType
driver_type,
37
eGPUSupportLevel
gpu_support_level,
38
eGPUBackendType
backend
,
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
47
extern
GPUPlatformGlobal
GPG
;
48
49
}
// namespace blender::gpu
BLI_vector.hh
GPU_platform.hh
eGPUDriverType
eGPUDriverType
Definition
GPU_platform.hh:43
GPUArchitectureType
GPUArchitectureType
Definition
GPU_platform.hh:56
GPU_ARCHITECTURE_IMR
@ GPU_ARCHITECTURE_IMR
Definition
GPU_platform.hh:60
eGPUSupportLevel
eGPUSupportLevel
Definition
GPU_platform.hh:50
eGPUOSType
eGPUOSType
Definition
GPU_platform.hh:36
eGPUDeviceType
eGPUDeviceType
Definition
GPU_platform.hh:22
eGPUBackendType
eGPUBackendType
Definition
GPU_platform_backend_enum.h:11
GPU_BACKEND_NONE
@ GPU_BACKEND_NONE
Definition
GPU_platform_backend_enum.h:12
init
void init()
blender::Vector
Definition
BLI_vector.hh:65
blender::gpu::GPUPlatformGlobal
Definition
gpu_platform_private.hh:17
blender::gpu::GPUPlatformGlobal::devices
Vector< GPUDevice > devices
Definition
gpu_platform_private.hh:31
blender::gpu::GPUPlatformGlobal::driver
eGPUDriverType driver
Definition
gpu_platform_private.hh:22
blender::gpu::GPUPlatformGlobal::initialized
bool initialized
Definition
gpu_platform_private.hh:19
blender::gpu::GPUPlatformGlobal::support_key
char * support_key
Definition
gpu_platform_private.hh:27
blender::gpu::GPUPlatformGlobal::renderer
char * renderer
Definition
gpu_platform_private.hh:25
blender::gpu::GPUPlatformGlobal::device
eGPUDeviceType device
Definition
gpu_platform_private.hh:20
blender::gpu::GPUPlatformGlobal::os
eGPUOSType os
Definition
gpu_platform_private.hh:21
blender::gpu::GPUPlatformGlobal::clear
void clear()
Definition
gpu_platform.cc:99
blender::gpu::GPUPlatformGlobal::version
char * version
Definition
gpu_platform_private.hh:26
blender::gpu::GPUPlatformGlobal::support_level
eGPUSupportLevel support_level
Definition
gpu_platform_private.hh:23
blender::gpu::GPUPlatformGlobal::gpu_name
char * gpu_name
Definition
gpu_platform_private.hh:28
blender::gpu::GPUPlatformGlobal::vendor
char * vendor
Definition
gpu_platform_private.hh:24
blender::gpu::GPUPlatformGlobal::backend
eGPUBackendType backend
Definition
gpu_platform_private.hh:29
blender::gpu::GPUPlatformGlobal::architecture_type
GPUArchitectureType architecture_type
Definition
gpu_platform_private.hh:30
blender::gpu
Definition
blf_internal_types.hh:23
blender::gpu::GPG
GPUPlatformGlobal GPG
Definition
gpu_platform.cc:29
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0