Blender  V2.93
Typedefs | Enumerations | Functions
GPU_platform.h File Reference
#include "BLI_sys_types.h"
#include "BLI_utildefines.h"

Go to the source code of this file.

Typedefs

typedef enum eGPUDeviceType eGPUDeviceType
 
typedef enum eGPUOSType eGPUOSType
 
typedef enum eGPUDriverType eGPUDriverType
 
typedef enum eGPUSupportLevel eGPUSupportLevel
 

Enumerations

enum  eGPUDeviceType {
  GPU_DEVICE_NVIDIA = (1 << 0) , GPU_DEVICE_ATI = (1 << 1) , GPU_DEVICE_INTEL = (1 << 2) , GPU_DEVICE_INTEL_UHD = (1 << 3) ,
  GPU_DEVICE_APPLE = (1 << 3) , GPU_DEVICE_SOFTWARE = (1 << 4) , GPU_DEVICE_UNKNOWN = (1 << 5) , GPU_DEVICE_ANY = (0xff)
}
 
enum  eGPUOSType { GPU_OS_WIN = (1 << 8) , GPU_OS_MAC = (1 << 9) , GPU_OS_UNIX = (1 << 10) , GPU_OS_ANY = (0xff00) }
 
enum  eGPUDriverType { GPU_DRIVER_OFFICIAL = (1 << 16) , GPU_DRIVER_OPENSOURCE = (1 << 17) , GPU_DRIVER_SOFTWARE = (1 << 18) , GPU_DRIVER_ANY = (0xff0000) }
 
enum  eGPUSupportLevel { GPU_SUPPORT_LEVEL_SUPPORTED , GPU_SUPPORT_LEVEL_LIMITED , GPU_SUPPORT_LEVEL_UNSUPPORTED }
 

Functions

bool GPU_type_matches (eGPUDeviceType device, eGPUOSType os, eGPUDriverType driver)
 
eGPUSupportLevel GPU_platform_support_level (void)
 
const char * GPU_platform_support_level_key (void)
 
const char * GPU_platform_gpu_name (void)
 

Typedef Documentation

◆ eGPUDeviceType

◆ eGPUDriverType

◆ eGPUOSType

typedef enum eGPUOSType eGPUOSType

◆ eGPUSupportLevel

Enumeration Type Documentation

◆ eGPUDeviceType

Enumerator
GPU_DEVICE_NVIDIA 
GPU_DEVICE_ATI 
GPU_DEVICE_INTEL 
GPU_DEVICE_INTEL_UHD 
GPU_DEVICE_APPLE 
GPU_DEVICE_SOFTWARE 
GPU_DEVICE_UNKNOWN 
GPU_DEVICE_ANY 

Definition at line 32 of file GPU_platform.h.

◆ eGPUDriverType

Enumerator
GPU_DRIVER_OFFICIAL 
GPU_DRIVER_OPENSOURCE 
GPU_DRIVER_SOFTWARE 
GPU_DRIVER_ANY 

Definition at line 52 of file GPU_platform.h.

◆ eGPUOSType

enum eGPUOSType
Enumerator
GPU_OS_WIN 
GPU_OS_MAC 
GPU_OS_UNIX 
GPU_OS_ANY 

Definition at line 45 of file GPU_platform.h.

◆ eGPUSupportLevel

Enumerator
GPU_SUPPORT_LEVEL_SUPPORTED 
GPU_SUPPORT_LEVEL_LIMITED 
GPU_SUPPORT_LEVEL_UNSUPPORTED 

Definition at line 59 of file GPU_platform.h.

Function Documentation

◆ GPU_platform_gpu_name()

const char* GPU_platform_gpu_name ( void  )

◆ GPU_platform_support_level()

eGPUSupportLevel GPU_platform_support_level ( void  )

◆ GPU_platform_support_level_key()

const char* GPU_platform_support_level_key ( void  )

◆ GPU_type_matches()

bool GPU_type_matches ( eGPUDeviceType  device,
eGPUOSType  os,
eGPUDriverType  driver 
)