Blender V5.3
device.cpp File Reference
#include "blender/device.h"
#include "blender/session.h"
#include "blender/util.h"
#include "BKE_scene.hh"
#include "RNA_prototypes.hh"

Go to the source code of this file.

Enumerations

enum  ComputeDevice {
  COMPUTE_DEVICE_CPU = 0 , COMPUTE_DEVICE_CUDA = 1 , COMPUTE_DEVICE_OPTIX = 3 , COMPUTE_DEVICE_HIP = 4 ,
  COMPUTE_DEVICE_METAL = 5 , COMPUTE_DEVICE_ONEAPI = 6 , COMPUTE_DEVICE_NUM
}

Functions

int blender_device_threads (blender::Scene &b_scene)
static void adjust_device_info_from_preferences (DeviceInfo &info, blender::PointerRNA cpreferences)
static void adjust_device_info (DeviceInfo &device, blender::PointerRNA cpreferences, bool preview)
DeviceInfo blender_device_info (blender::UserDef &b_preferences, blender::Scene &b_scene, bool background, bool preview, DeviceInfo &preferences_device)

Enumeration Type Documentation

◆ ComputeDevice

Enumerator
COMPUTE_DEVICE_CPU 
COMPUTE_DEVICE_CUDA 
COMPUTE_DEVICE_OPTIX 
COMPUTE_DEVICE_HIP 
COMPUTE_DEVICE_METAL 
COMPUTE_DEVICE_ONEAPI 
COMPUTE_DEVICE_NUM 

Definition at line 14 of file blender/device.cpp.

Function Documentation

◆ adjust_device_info()

◆ adjust_device_info_from_preferences()

◆ blender_device_info()

◆ blender_device_threads()