Blender V5.0
blender/device.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7#include "RNA_blender_cpp.hh"
8
9#include "device/device.h"
10
12
13/* Get number of threads to use for rendering. */
14int blender_device_threads(BL::Scene &b_scene);
15
16/* Convert Blender settings to device specification. In addition, preferences_device contains the
17 * device chosen in Cycles global preferences, which is useful for the denoiser device selection.
18 */
19DeviceInfo blender_device_info(BL::Preferences &b_preferences,
20 BL::Scene &b_scene,
21 bool background,
22 bool preview,
23 DeviceInfo &preferences_device);
24
CCL_NAMESPACE_BEGIN int blender_device_threads(BL::Scene &b_scene)
DeviceInfo blender_device_info(BL::Preferences &b_preferences, BL::Scene &b_scene, bool background, bool preview, DeviceInfo &preferences_device)
#define CCL_NAMESPACE_END