Blender  V3.3
Enumerations | Functions
blender/device.cpp File Reference
#include "blender/device.h"
#include "blender/session.h"
#include "blender/util.h"
#include "util/foreach.h"

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 (BL::Scene &b_scene)
 
DeviceInfo blender_device_info (BL::Preferences &b_preferences, BL::Scene &b_scene, bool background)
 

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 12 of file blender/device.cpp.

Function Documentation

◆ blender_device_info()

DeviceInfo blender_device_info ( BL::Preferences &  b_preferences,
BL::Scene b_scene,
bool  background 
)

◆ blender_device_threads()

int blender_device_threads ( BL::Scene b_scene)

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

Referenced by blender_device_info(), and BlenderSync::get_session_params().