Blender  V3.3
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 
15  public:
16  bool initialized = false;
21  char *vendor = nullptr;
22  char *renderer = nullptr;
23  char *version = nullptr;
24  char *support_key = nullptr;
25  char *gpu_name = nullptr;
27 
28  public:
29  void init(eGPUDeviceType gpu_device,
30  eGPUOSType os_type,
31  eGPUDriverType driver_type,
32  eGPUSupportLevel gpu_support_level,
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
eGPUBackendType
Definition: GPU_platform.h:15
@ GPU_BACKEND_NONE
Definition: GPU_platform.h:16
eGPUDriverType
Definition: GPU_platform.h:43
eGPUSupportLevel
Definition: GPU_platform.h:50
eGPUOSType
Definition: GPU_platform.h:36
eGPUDeviceType
Definition: GPU_platform.h:23
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
GPUPlatformGlobal GPG
Definition: gpu_platform.cc:26