mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +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
28 lines
823 B
C++
28 lines
823 B
C++
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
#pragma once
|
|
|
|
#include "util/unique_ptr.h"
|
|
#include "util/vector.h"
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
class Device;
|
|
class DeviceInfo;
|
|
class Profiler;
|
|
class Stats;
|
|
|
|
bool device_optix_init(bool *r_meets_driver_requirement = nullptr);
|
|
|
|
unique_ptr<Device> device_optix_create(const DeviceInfo &info,
|
|
Stats &stats,
|
|
Profiler &profiler,
|
|
bool headless);
|
|
|
|
/** Generate proper OptiX DeviceInfo based on an existing CUDA DeviceInfo for the same device.
|
|
* Does not require usage of the OptiX API, only CUDA API. */
|
|
void device_optix_info(const vector<DeviceInfo> &cuda_devices, vector<DeviceInfo> &devices);
|
|
|
|
CCL_NAMESPACE_END
|