Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "BLI_dynstr.h"
#include "BLI_string.h"
#include "GPU_platform.h"
#include "gpu_platform_private.hh"
Go to the source code of this file.
Namespaces | |
blender | |
blender::gpu | |
Functions | |
static char * | blender::gpu::create_key (eGPUSupportLevel support_level, const char *vendor, const char *renderer, const char *version) |
static char * | blender::gpu::create_gpu_name (const char *vendor, const char *renderer, const char *version) |
C-API | |
eGPUSupportLevel | GPU_platform_support_level () |
const char * | GPU_platform_vendor () |
const char * | GPU_platform_renderer () |
const char * | GPU_platform_version () |
const char * | GPU_platform_support_level_key () |
const char * | GPU_platform_gpu_name () |
bool | GPU_type_matches (eGPUDeviceType device, eGPUOSType os, eGPUDriverType driver) |
bool | GPU_type_matches_ex (eGPUDeviceType device, eGPUOSType os, eGPUDriverType driver, eGPUBackendType backend) |
Variables | |
GPUPlatformGlobal | blender::gpu::GPG |
Wrap OpenGL features such as textures, shaders and GLSL with checks for drivers and GPU support.
Definition in file gpu_platform.cc.
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().