Blender  V3.3
blender/device.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2011-2022 Blender Foundation */
3 
4 #ifndef __BLENDER_DEVICE_H__
5 #define __BLENDER_DEVICE_H__
6 
7 #include "MEM_guardedalloc.h"
8 #include "RNA_access.h"
9 #include "RNA_blender_cpp.h"
10 #include "RNA_types.h"
11 
12 #include "device/device.h"
13 
15 
16 /* Get number of threads to use for rendering. */
17 int blender_device_threads(BL::Scene &b_scene);
18 
19 /* Convert Blender settings to device specification. */
20 DeviceInfo blender_device_info(BL::Preferences &b_preferences,
21  BL::Scene &b_scene,
22  bool background);
23 
25 
26 #endif /* __BLENDER_DEVICE_H__ */
struct Scene Scene
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)
#define CCL_NAMESPACE_END
Definition: cuda/compat.h:9