Blender
V3.3
source
blender
gpu
intern
gpu_platform_private.hh
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2020 Blender Foundation. All rights reserved. */
3
8
#pragma once
9
10
#include "
GPU_platform.h
"
11
12
namespace
blender::gpu
{
13
14
class
GPUPlatformGlobal
{
15
public
:
16
bool
initialized
=
false
;
17
eGPUDeviceType
device
;
18
eGPUOSType
os
;
19
eGPUDriverType
driver
;
20
eGPUSupportLevel
support_level
;
21
char
*
vendor
=
nullptr
;
22
char
*
renderer
=
nullptr
;
23
char
*
version
=
nullptr
;
24
char
*
support_key
=
nullptr
;
25
char
*
gpu_name
=
nullptr
;
26
eGPUBackendType
backend
=
GPU_BACKEND_NONE
;
27
28
public
:
29
void
init
(
eGPUDeviceType
gpu_device,
30
eGPUOSType
os_type,
31
eGPUDriverType
driver_type,
32
eGPUSupportLevel
gpu_support_level,
33
eGPUBackendType
backend
,
34
const
char
*vendor_str,
35
const
char
*renderer_str,
36
const
char
*version_str);
37
38
void
clear
();
39
};
40
41
extern
GPUPlatformGlobal
GPG
;
42
43
}
// namespace blender::gpu
GPU_platform.h
eGPUBackendType
eGPUBackendType
Definition:
GPU_platform.h:15
GPU_BACKEND_NONE
@ GPU_BACKEND_NONE
Definition:
GPU_platform.h:16
eGPUDriverType
eGPUDriverType
Definition:
GPU_platform.h:43
eGPUSupportLevel
eGPUSupportLevel
Definition:
GPU_platform.h:50
eGPUOSType
eGPUOSType
Definition:
GPU_platform.h:36
eGPUDeviceType
eGPUDeviceType
Definition:
GPU_platform.h:23
blender::gpu::GPUPlatformGlobal
Definition:
gpu_platform_private.hh:14
blender::gpu::GPUPlatformGlobal::driver
eGPUDriverType driver
Definition:
gpu_platform_private.hh:19
blender::gpu::GPUPlatformGlobal::initialized
bool initialized
Definition:
gpu_platform_private.hh:16
blender::gpu::GPUPlatformGlobal::support_key
char * support_key
Definition:
gpu_platform_private.hh:24
blender::gpu::GPUPlatformGlobal::renderer
char * renderer
Definition:
gpu_platform_private.hh:22
blender::gpu::GPUPlatformGlobal::device
eGPUDeviceType device
Definition:
gpu_platform_private.hh:17
blender::gpu::GPUPlatformGlobal::os
eGPUOSType os
Definition:
gpu_platform_private.hh:18
blender::gpu::GPUPlatformGlobal::clear
void clear()
Definition:
gpu_platform.cc:90
blender::gpu::GPUPlatformGlobal::version
char * version
Definition:
gpu_platform_private.hh:23
blender::gpu::GPUPlatformGlobal::init
void init(eGPUDeviceType gpu_device, eGPUOSType os_type, eGPUDriverType driver_type, eGPUSupportLevel gpu_support_level, eGPUBackendType backend, const char *vendor_str, const char *renderer_str, const char *version_str)
Definition:
gpu_platform.cc:64
blender::gpu::GPUPlatformGlobal::support_level
eGPUSupportLevel support_level
Definition:
gpu_platform_private.hh:20
blender::gpu::GPUPlatformGlobal::gpu_name
char * gpu_name
Definition:
gpu_platform_private.hh:25
blender::gpu::GPUPlatformGlobal::vendor
char * vendor
Definition:
gpu_platform_private.hh:21
blender::gpu::GPUPlatformGlobal::backend
eGPUBackendType backend
Definition:
gpu_platform_private.hh:26
blender::gpu
Definition:
gpu_backend.hh:15
blender::gpu::GPG
GPUPlatformGlobal GPG
Definition:
gpu_platform.cc:26
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1