|
Blender
V2.93
|
#include "blender/blender_device.h"#include "blender/blender_session.h"#include "blender/blender_util.h"#include "util/util_foreach.h"Go to the source code of this file.
Enumerations | |
| enum | ComputeDevice { COMPUTE_DEVICE_CPU = 0 , COMPUTE_DEVICE_CUDA = 1 , COMPUTE_DEVICE_OPENCL = 2 , COMPUTE_DEVICE_OPTIX = 3 , COMPUTE_DEVICE_NUM } |
Functions | |
| int | blender_device_threads (BL::Scene &b_scene) |
| DeviceInfo | blender_device_info (BL::Preferences &b_preferences, BL::Scene &b_scene, bool background) |
| enum ComputeDevice |
| Enumerator | |
|---|---|
| COMPUTE_DEVICE_CPU | |
| COMPUTE_DEVICE_CUDA | |
| COMPUTE_DEVICE_OPENCL | |
| COMPUTE_DEVICE_OPTIX | |
| COMPUTE_DEVICE_NUM | |
Definition at line 25 of file blender_device.cpp.
| DeviceInfo blender_device_info | ( | BL::Preferences & | b_preferences, |
| BL::Scene & | b_scene, | ||
| bool | background | ||
| ) |
Definition at line 44 of file blender_device.cpp.
References Device::available_devices(), blender_device_threads(), COMPUTE_DEVICE_CPU, COMPUTE_DEVICE_CUDA, COMPUTE_DEVICE_NUM, COMPUTE_DEVICE_OPENCL, COMPUTE_DEVICE_OPTIX, DEVICE_MASK_ALL, DEVICE_MASK_CPU, DEVICE_MASK_CUDA, DEVICE_MASK_NETWORK, DEVICE_MASK_OPENCL, DEVICE_MASK_OPTIX, BlenderSession::device_override, blender::compositor::devices, Device::dummy_device(), get_boolean(), get_enum(), Device::get_multi_device(), get_string(), DeviceInfo::has_peer_memory, DeviceInfo::id, mask(), RNA_BEGIN, RNA_END, RNA_pointer_get(), and blender::compositor::threads.
Referenced by denoise_func(), and BlenderSync::get_session_params().
| int blender_device_threads | ( | BL::Scene & | b_scene | ) |
Definition at line 34 of file blender_device.cpp.
Referenced by blender_device_info(), and BlenderSync::get_session_params().