This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/gpu/intern/gpu_platform_private.hh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
955 B
C++
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2020 Blender Foundation. All rights reserved. */
/** \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;
2020-10-02 09:48:41 +10:00
} // namespace blender::gpu