Blender V4.5
DeviceInfo Class Reference

#include <device.h>

Public Member Functions

 DeviceInfo ()=default
 
bool operator== (const DeviceInfo &info) const
 
bool operator!= (const DeviceInfo &info) const
 
bool contains_device_type (const DeviceType type) const
 

Public Attributes

DeviceType type = DEVICE_CPU
 
string description
 
string id = "CPU"
 
int num = 0
 
bool display_device = false
 
bool has_nanovdb = false
 
bool has_mnee = true
 
bool has_osl = false
 
bool has_guiding = false
 
bool has_profiling = false
 
bool has_peer_memory = false
 
bool has_gpu_queue = false
 
bool use_hardware_raytracing = false
 
bool use_metalrt_by_default = false
 
bool has_execution_optimization = true
 
KernelOptimizationLevel kernel_optimization_level
 
DenoiserTypeMask denoisers = DENOISER_NONE
 
int cpu_threads = 0
 
vector< DeviceInfomulti_devices
 
string error_msg
 

Detailed Description

Definition at line 80 of file device/device.h.

Constructor & Destructor Documentation

◆ DeviceInfo()

DeviceInfo::DeviceInfo ( )
default

Member Function Documentation

◆ contains_device_type()

bool DeviceInfo::contains_device_type ( const DeviceType type) const

Definition at line 819 of file device/device.cpp.

References info, multi_devices, and type.

◆ operator!=()

bool DeviceInfo::operator!= ( const DeviceInfo & info) const
inline

Definition at line 119 of file device/device.h.

References info.

◆ operator==()

bool DeviceInfo::operator== ( const DeviceInfo & info) const
inline

Member Data Documentation

◆ cpu_threads

◆ denoisers

DenoiserTypeMask DeviceInfo::denoisers = DENOISER_NONE

◆ description

string DeviceInfo::description

◆ display_device

bool DeviceInfo::display_device = false

Definition at line 87 of file device/device.h.

Referenced by full_device_info_description().

◆ error_msg

string DeviceInfo::error_msg

Definition at line 107 of file device/device.h.

Referenced by Device::dummy_device(), and DummyDevice::DummyDevice().

◆ has_execution_optimization

bool DeviceInfo::has_execution_optimization = true

Definition at line 99 of file device/device.h.

Referenced by available_devices_func().

◆ has_gpu_queue

bool DeviceInfo::has_gpu_queue = false

Definition at line 94 of file device/device.h.

◆ has_guiding

bool DeviceInfo::has_guiding = false

Definition at line 91 of file device/device.h.

Referenced by Integrator::get_guiding_params(), and Device::get_multi_device().

◆ has_mnee

bool DeviceInfo::has_mnee = true

Definition at line 89 of file device/device.h.

Referenced by Device::get_multi_device(), and Scene::update_kernel_features().

◆ has_nanovdb

bool DeviceInfo::has_nanovdb = false

Definition at line 88 of file device/device.h.

Referenced by Device::get_multi_device().

◆ has_osl

bool DeviceInfo::has_osl = false

Definition at line 90 of file device/device.h.

Referenced by Device::get_multi_device(), and Scene::Scene().

◆ has_peer_memory

bool DeviceInfo::has_peer_memory = false

◆ has_profiling

bool DeviceInfo::has_profiling = false

Definition at line 92 of file device/device.h.

Referenced by Device::get_multi_device().

◆ id

string DeviceInfo::id = "CPU"

◆ kernel_optimization_level

KernelOptimizationLevel DeviceInfo::kernel_optimization_level
Initial value:

Definition at line 101 of file device/device.h.

Referenced by adjust_device_info(), and operator==().

◆ multi_devices

◆ num

int DeviceInfo::num = 0

Definition at line 86 of file device/device.h.

Referenced by Device::get_multi_device(), and operator==().

◆ type

◆ use_hardware_raytracing

bool DeviceInfo::use_hardware_raytracing = false

◆ use_metalrt_by_default

bool DeviceInfo::use_metalrt_by_default = false

Definition at line 96 of file device/device.h.


The documentation for this class was generated from the following files: