Blender V4.3
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#ifndef __BLENDER_DEVICE_H__
6#define __BLENDER_DEVICE_H__
7
8#include "MEM_guardedalloc.h"
9#include "RNA_access.hh"
10#include "RNA_blender_cpp.hh"
11#include "RNA_types.hh"
12
13#include "device/device.h"
14
16
17/* Get number of threads to use for rendering. */
18int blender_device_threads(BL::Scene &b_scene);
19
20/* Convert Blender settings to device specification. In addition, preferences_device contains the
21 * device chosen in Cycles global preferences, which is useful for the denoiser device selection.
22 */
23DeviceInfo blender_device_info(BL::Preferences &b_preferences,
24 BL::Scene &b_scene,
25 bool background,
26 bool preview,
27 DeviceInfo &preferences_device);
28
30
31#endif /* __BLENDER_DEVICE_H__ */
Read Guarded memory(de)allocation.
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