Blender  V3.3
Classes | Macros | Enumerations
device/device.h File Reference
#include <stdlib.h>
#include "bvh/params.h"
#include "device/denoise.h"
#include "device/memory.h"
#include "util/function.h"
#include "util/list.h"
#include "util/log.h"
#include "util/stats.h"
#include "util/string.h"
#include "util/texture.h"
#include "util/thread.h"
#include "util/types.h"
#include "util/unique_ptr.h"
#include "util/vector.h"

Go to the source code of this file.

Classes

class  DeviceInfo
 
class  Device
 

Macros

#define DEVICE_MASK(type)   (DeviceTypeMask)(1 << type)
 

Enumerations

enum  DeviceType {
  DEVICE_NONE = 0 , DEVICE_CPU , DEVICE_CUDA , DEVICE_MULTI ,
  DEVICE_OPTIX , DEVICE_HIP , DEVICE_METAL , DEVICE_ONEAPI ,
  DEVICE_DUMMY
}
 
enum  DeviceTypeMask {
  DEVICE_MASK_CPU = (1 << DEVICE_CPU) , DEVICE_MASK_CUDA = (1 << DEVICE_CUDA) , DEVICE_MASK_OPTIX = (1 << DEVICE_OPTIX) , DEVICE_MASK_HIP = (1 << DEVICE_HIP) ,
  DEVICE_MASK_METAL = (1 << DEVICE_METAL) , DEVICE_MASK_ONEAPI = (1 << DEVICE_ONEAPI) , DEVICE_MASK_ALL = ~0
}
 

Macro Definition Documentation

◆ DEVICE_MASK

#define DEVICE_MASK (   type)    (DeviceTypeMask)(1 << type)

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

Enumeration Type Documentation

◆ DeviceType

enum DeviceType
Enumerator
DEVICE_NONE 
DEVICE_CPU 
DEVICE_CUDA 
DEVICE_MULTI 
DEVICE_OPTIX 
DEVICE_HIP 
DEVICE_METAL 
DEVICE_ONEAPI 
DEVICE_DUMMY 

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

◆ DeviceTypeMask

Enumerator
DEVICE_MASK_CPU 
DEVICE_MASK_CUDA 
DEVICE_MASK_OPTIX 
DEVICE_MASK_HIP 
DEVICE_MASK_METAL 
DEVICE_MASK_ONEAPI 
DEVICE_MASK_ALL 

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