Blender
V4.3
intern
cycles
blender
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
15
CCL_NAMESPACE_BEGIN
16
17
/* Get number of threads to use for rendering. */
18
int
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
*/
23
DeviceInfo
blender_device_info
(BL::Preferences &b_preferences,
24
BL::Scene &b_scene,
25
bool
background,
26
bool
preview,
27
DeviceInfo
&preferences_device);
28
29
CCL_NAMESPACE_END
30
31
#endif
/* __BLENDER_DEVICE_H__ */
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
RNA_access.hh
RNA_types.hh
blender_device_threads
CCL_NAMESPACE_BEGIN int blender_device_threads(BL::Scene &b_scene)
Definition
blender/device.cpp:24
blender_device_info
DeviceInfo blender_device_info(BL::Preferences &b_preferences, BL::Scene &b_scene, bool background, bool preview, DeviceInfo &preferences_device)
Definition
blender/device.cpp:91
DeviceInfo
Definition
device/device.h:78
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
device.h
CCL_NAMESPACE_BEGIN
Definition
python.cpp:44
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0