mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
When a GPU device's driver does not meet Blender's minimum required version, the device is now shown in the preferences as a greyed-out entry with a message inside the brackets, indicating which driver version is needed, instead of being silently hidden. This helps users understand why their GPU is not available for rendering and what action they can take to resolve the situation. Pull Request: https://projects.blender.org/blender/blender/pulls/159405
29 lines
674 B
C++
29 lines
674 B
C++
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
#pragma once
|
|
|
|
#include "util/string.h"
|
|
#include "util/unique_ptr.h"
|
|
#include "util/vector.h"
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
class Device;
|
|
class DeviceInfo;
|
|
class Profiler;
|
|
class Stats;
|
|
|
|
bool device_hip_init(bool *r_meets_driver_requirement = nullptr);
|
|
|
|
unique_ptr<Device> device_hip_create(const DeviceInfo &info,
|
|
Stats &stats,
|
|
Profiler &profiler,
|
|
bool headless);
|
|
|
|
void device_hip_info(vector<DeviceInfo> &devices);
|
|
|
|
string device_hip_capabilities();
|
|
|
|
CCL_NAMESPACE_END
|