The last good commit was8474716abb. After this commits from main were pushed to blender-v4.0-release. These are being reverted. Commitsa4880576dcfrom tob26f176d1athat happend afterwards were meant for 4.0, and their contents is preserved.
45 lines
947 B
C++
45 lines
947 B
C++
/* SPDX-FileCopyrightText: 2020 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup gpu
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "GPU_platform.h"
|
|
|
|
namespace blender::gpu {
|
|
|
|
class GPUPlatformGlobal {
|
|
public:
|
|
bool initialized = false;
|
|
eGPUDeviceType device;
|
|
eGPUOSType os;
|
|
eGPUDriverType driver;
|
|
eGPUSupportLevel support_level;
|
|
char *vendor = nullptr;
|
|
char *renderer = nullptr;
|
|
char *version = nullptr;
|
|
char *support_key = nullptr;
|
|
char *gpu_name = nullptr;
|
|
eGPUBackendType backend = GPU_BACKEND_NONE;
|
|
|
|
public:
|
|
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);
|
|
|
|
void clear();
|
|
};
|
|
|
|
extern GPUPlatformGlobal GPG;
|
|
|
|
} // namespace blender::gpu
|