Blender
V3.3
|
Go to the source code of this file.
Typedefs | |
typedef enum eGPUBackendType | eGPUBackendType |
typedef enum eGPUDeviceType | eGPUDeviceType |
typedef enum eGPUOSType | eGPUOSType |
typedef enum eGPUDriverType | eGPUDriverType |
typedef enum eGPUSupportLevel | eGPUSupportLevel |
Enumerations | |
enum | eGPUBackendType { GPU_BACKEND_NONE = 0 , GPU_BACKEND_OPENGL = 1 << 0 , GPU_BACKEND_METAL = 1 << 1 , GPU_BACKEND_ANY = 0xFFFFFFFFu } |
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 << 4) , GPU_DEVICE_SOFTWARE = (1 << 5) , GPU_DEVICE_UNKNOWN = (1 << 6) , 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) |
bool | GPU_type_matches_ex (eGPUDeviceType device, eGPUOSType os, eGPUDriverType driver, eGPUBackendType backend) |
eGPUSupportLevel | GPU_platform_support_level (void) |
const char * | GPU_platform_vendor (void) |
const char * | GPU_platform_renderer (void) |
const char * | GPU_platform_version (void) |
const char * | GPU_platform_support_level_key (void) |
const char * | GPU_platform_gpu_name (void) |
typedef enum eGPUBackendType eGPUBackendType |
typedef enum eGPUDeviceType eGPUDeviceType |
typedef enum eGPUDriverType eGPUDriverType |
typedef enum eGPUOSType eGPUOSType |
typedef enum eGPUSupportLevel eGPUSupportLevel |
enum eGPUBackendType |
Enumerator | |
---|---|
GPU_BACKEND_NONE | |
GPU_BACKEND_OPENGL | |
GPU_BACKEND_METAL | |
GPU_BACKEND_ANY |
Definition at line 15 of file GPU_platform.h.
enum 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 23 of file GPU_platform.h.
enum eGPUDriverType |
Enumerator | |
---|---|
GPU_DRIVER_OFFICIAL | |
GPU_DRIVER_OPENSOURCE | |
GPU_DRIVER_SOFTWARE | |
GPU_DRIVER_ANY |
Definition at line 43 of file GPU_platform.h.
enum eGPUOSType |
Enumerator | |
---|---|
GPU_OS_WIN | |
GPU_OS_MAC | |
GPU_OS_UNIX | |
GPU_OS_ANY |
Definition at line 36 of file GPU_platform.h.
enum eGPUSupportLevel |
Enumerator | |
---|---|
GPU_SUPPORT_LEVEL_SUPPORTED | |
GPU_SUPPORT_LEVEL_LIMITED | |
GPU_SUPPORT_LEVEL_UNSUPPORTED |
Definition at line 50 of file GPU_platform.h.
const char* GPU_platform_gpu_name | ( | void | ) |
Definition at line 140 of file gpu_platform.cc.
References BLI_assert, blender::gpu::GPG, blender::gpu::GPUPlatformGlobal::gpu_name, and blender::gpu::GPUPlatformGlobal::initialized.
Referenced by WM_platform_support_perform_checks().
const char* GPU_platform_renderer | ( | void | ) |
Definition at line 122 of file gpu_platform.cc.
References BLI_assert, blender::gpu::GPG, blender::gpu::GPUPlatformGlobal::initialized, and blender::gpu::GPUPlatformGlobal::renderer.
Referenced by pygpu_platform_renderer_get().
eGPUSupportLevel GPU_platform_support_level | ( | void | ) |
Definition at line 110 of file gpu_platform.cc.
References BLI_assert, blender::gpu::GPG, blender::gpu::GPUPlatformGlobal::initialized, and blender::gpu::GPUPlatformGlobal::support_level.
Referenced by WM_platform_support_perform_checks().
const char* GPU_platform_support_level_key | ( | void | ) |
Definition at line 134 of file gpu_platform.cc.
References BLI_assert, blender::gpu::GPG, blender::gpu::GPUPlatformGlobal::initialized, and blender::gpu::GPUPlatformGlobal::support_key.
Referenced by WM_platform_support_perform_checks().
const char* GPU_platform_vendor | ( | void | ) |
Definition at line 116 of file gpu_platform.cc.
References BLI_assert, blender::gpu::GPG, blender::gpu::GPUPlatformGlobal::initialized, and blender::gpu::GPUPlatformGlobal::vendor.
Referenced by pygpu_platform_vendor_get().
const char* GPU_platform_version | ( | void | ) |
Definition at line 128 of file gpu_platform.cc.
References BLI_assert, blender::gpu::GPG, blender::gpu::GPUPlatformGlobal::initialized, and blender::gpu::GPUPlatformGlobal::version.
Referenced by blender::gpu::GLLogParser::parse_line().
bool GPU_type_matches | ( | eGPUDeviceType | device, |
eGPUOSType | os, | ||
eGPUDriverType | driver | ||
) |
Definition at line 146 of file gpu_platform.cc.
References GPU_BACKEND_ANY, and GPU_type_matches_ex().
Referenced by blender::gpu::debug::debug_callback(), blender::gpu::detect_workarounds(), blender::gpu::MTLCommandBufferManager::do_break_submission(), drw_draw_pass_ex(), EEVEE_create_minmax_buffer(), gpu_shader_create_info_init(), blender::gpu::GLLogParser::parse_line(), standard_defines(), blender::gpu::GLShader::vertex_interface_declare(), wm_platform_support_create_link(), and wm_xr_init().
bool GPU_type_matches_ex | ( | eGPUDeviceType | device, |
eGPUOSType | os, | ||
eGPUDriverType | driver, | ||
eGPUBackendType | backend | ||
) |
Definition at line 151 of file gpu_platform.cc.
References blender::gpu::GPUPlatformGlobal::backend, BLI_assert, blender::gpu::GPUPlatformGlobal::device, blender::gpu::GPUPlatformGlobal::driver, blender::gpu::GPG, blender::gpu::GPUPlatformGlobal::initialized, and blender::gpu::GPUPlatformGlobal::os.
Referenced by draw_widgetbase_batch_skip_draw_cache(), drw_deferred_shader_compilation_exec(), DRW_draw_render_loop_2d_ex(), DRW_draw_render_loop_ex(), DRW_opengl_context_disable_ex(), ED_screen_draw_edges(), EEVEE_effects_cache_init(), EEVEE_effects_init(), EEVEE_occlusion_compute(), GPU_type_matches(), BlenderDisplayDriver::update_end(), and blender::gpu::GLShader::vertex_interface_declare().