25 BL::RenderSettings b_r = b_scene.render();
27 if (b_r.threads_mode() == BL::RenderSettings::threads_mode_FIXED)
39 for (BL::Addon &b_addon : b_preferences.addons) {
40 if (b_addon.module() ==
"cycles") {
41 cpreferences = b_addon.preferences().ptr;
60 else if (
get_enum(cscene,
"device") == 1) {
87 RNA_BEGIN (&cpreferences, device,
"devices") {
92 used_devices.push_back(info);
100 if (!used_devices.empty()) {
#define RNA_BEGIN(sptr, itemptr, propname)
int blender_device_threads(BL::Scene &b_scene)
DeviceInfo blender_device_info(BL::Preferences &b_preferences, BL::Scene &b_scene, bool background)
static DeviceTypeMask device_override
static DeviceInfo dummy_device(const string &error_msg="")
static vector< DeviceInfo > available_devices(uint device_type_mask=DEVICE_MASK_ALL)
static DeviceInfo get_multi_device(const vector< DeviceInfo > &subdevices, int threads, bool background)
#define CCL_NAMESPACE_END
static bool get_boolean(PointerRNA &ptr, const char *name)
static int get_enum(PointerRNA &ptr, const char *name, int num_values=-1, int default_value=-1)
static string get_string(PointerRNA &ptr, const char *name)
ccl_device_inline float4 mask(const int4 &mask, const float4 &a)
Vector< CPUDevice > devices
list of all CPUDevices. for every hardware thread an instance of CPUDevice is created
ListBase threads
list of all thread for every CPUDevice in cpudevices a thread exists.
PointerRNA RNA_pointer_get(PointerRNA *ptr, const char *name)