|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "BLI_dynstr.h"#include "BLI_string.h"#include "BLI_string_utils.hh"#include "BLI_vector.hh"#include "GPU_platform.hh"#include "gpu_platform_private.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | 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 () |
| GPUArchitectureType | GPU_platform_architecture () |
| bool | GPU_type_matches (eGPUDeviceType device, eGPUOSType os, eGPUDriverType driver) |
| bool | GPU_type_matches_ex (eGPUDeviceType device, eGPUOSType os, eGPUDriverType driver, eGPUBackendType backend) |
| blender::Span< GPUDevice > | GPU_platform_devices_list () |
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.
| GPUArchitectureType GPU_platform_architecture | ( | ) |
Definition at line 156 of file gpu_platform.cc.
References blender::gpu::GPUPlatformGlobal::architecture_type, BLI_assert, blender::gpu::GPG, and blender::gpu::GPUPlatformGlobal::initialized.
Referenced by gpu_shader_create_info_init(), blender::eevee::ShadowModule::init(), blender::gpu::MTLCommandBufferManager::insert_memory_barrier(), blender::gpu::MSLGeneratorInterface::prepare_from_createinfo(), and blender::gpu::MTLFrameBuffer::subpass_transition_impl().
| blender::Span< GPUDevice > GPU_platform_devices_list | ( | ) |
Definition at line 177 of file gpu_platform.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::gpu::GPUPlatformGlobal::devices, and blender::gpu::GPG.
| const char * GPU_platform_gpu_name | ( | ) |
Definition at line 150 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 | ( | ) |
Definition at line 132 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 | ( | ) |
Definition at line 120 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 | ( | ) |
Definition at line 144 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 | ( | ) |
Definition at line 126 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 | ( | ) |
Definition at line 138 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(), and pygpu_platform_version_get().
| bool GPU_type_matches | ( | eGPUDeviceType | device, |
| eGPUOSType | os, | ||
| eGPUDriverType | driver ) |
Definition at line 162 of file gpu_platform.cc.
References GPU_BACKEND_ANY, and GPU_type_matches_ex().
Referenced by blender::eevee::GBuffer::bind(), blender::gpu::VKFrameBuffer::clear(), blender::gpu::compile_ex(), blender::gpu::debug::debug_callback(), blender::gpu::detect_workarounds(), blender::gpu::MTLCommandBufferManager::do_break_submission(), drw_draw_pass_ex(), is_subdivision_evaluation_possible_on_gpu(), blender::gpu::GLLogParser::parse_line(), pygpu_platform_device_type_get(), standard_defines(), blender::eevee::Film::sync(), blender::gpu::GLShader::vertex_interface_declare(), wm_platform_support_create_link(), WM_platform_support_perform_checks(), and wm_xr_init().
| bool GPU_type_matches_ex | ( | eGPUDeviceType | device, |
| eGPUOSType | os, | ||
| eGPUDriverType | driver, | ||
| eGPUBackendType | backend ) |
Definition at line 167 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 blender::eevee::Instance::draw_viewport(), drw_deferred_shader_compilation_exec(), DRW_draw_render_loop_2d_ex(), DRW_draw_render_loop_ex(), ED_screen_draw_edges(), GPU_indexbuf_init_ex(), gpu_shader_create_info_init(), GPU_type_matches(), blender::gpu::IndexBuf::init(), mixed_bones_object_selectbuffer(), blender::eevee::DepthOfField::render(), blender::gpu::tests::test_framebuffer_multi_viewport(), blender::gpu::tests::test_static_shaders(), blender::gpu::tests::test_texture_1d(), BlenderDisplayDriver::update_end(), and view3d_opengl_select_ex().