|
Blender
V2.93
|
#include "DNA_userdef_types.h"#include "GPU_capabilities.h"#include "gpu_context_private.hh"#include "gpu_capabilities_private.hh"Go to the source code of this file.
Namespaces | |
| blender | |
| blender::gpu | |
Functions | |
Capabilities | |
| int | GPU_max_texture_size (void) |
| int | GPU_texture_size_with_limit (int res, bool limit_gl_texture_size) |
| int | GPU_max_texture_layers (void) |
| int | GPU_max_textures_vert (void) |
| int | GPU_max_textures_geom (void) |
| int | GPU_max_textures_frag (void) |
| int | GPU_max_textures (void) |
| bool | GPU_mip_render_workaround (void) |
| bool | GPU_depth_blitting_workaround (void) |
| bool | GPU_use_main_context_workaround (void) |
| bool | GPU_crappy_amd_driver (void) |
| bool | GPU_use_hq_normals_workaround (void) |
| bool | GPU_shader_image_load_store_support (void) |
Memory statistics | |
| bool | GPU_mem_stats_supported (void) |
| void | GPU_mem_stats_get (int *totalmem, int *freemem) |
| bool | GPU_stereo_quadbuffer_support (void) |
Variables | |
| GPUCapabilities | blender::gpu::GCaps |
Wrap OpenGL features such as textures, shaders and GLSL with checks for drivers and GPU support.
Definition in file gpu_capabilities.cc.
| bool GPU_crappy_amd_driver | ( | void | ) |
Definition at line 100 of file gpu_capabilities.cc.
References blender::gpu::GPUCapabilities::broken_amd_driver, and blender::gpu::GCaps.
Referenced by DRW_vertbuf_create_wiredata(), extract_edge_fac_finish(), and standard_defines().
| bool GPU_depth_blitting_workaround | ( | void | ) |
Definition at line 90 of file gpu_capabilities.cc.
References blender::gpu::GPUCapabilities::depth_blitting_workaround, and blender::gpu::GCaps.
Referenced by EEVEE_subsurface_add_pass(), EEVEE_subsurface_compute(), EEVEE_subsurface_draw_init(), EEVEE_subsurface_output_init(), and blender::gpu::GLTexture::init_internal().
| int GPU_max_texture_layers | ( | void | ) |
Definition at line 60 of file gpu_capabilities.cc.
References blender::gpu::GCaps, and blender::gpu::GPUCapabilities::max_texture_layers.
Referenced by EEVEE_lightcache_info_update(), and eevee_lightcache_static_load().
| int GPU_max_texture_size | ( | void | ) |
Definition at line 47 of file gpu_capabilities.cc.
References blender::gpu::GCaps, and blender::gpu::GPUCapabilities::max_texture_size.
Referenced by blf_glyph_render(), EEVEE_render_init(), GPU_texture_size_with_limit(), and texture_paint_image_from_view_exec().
| int GPU_max_textures | ( | void | ) |
Definition at line 80 of file gpu_capabilities.cc.
References blender::gpu::GCaps, and blender::gpu::GPUCapabilities::max_textures.
Referenced by gpu_pass_shader_validate(), and blender::gpu::GLStateManager::texture_bind().
| int GPU_max_textures_frag | ( | void | ) |
Definition at line 75 of file gpu_capabilities.cc.
References blender::gpu::GCaps, and blender::gpu::GPUCapabilities::max_textures_frag.
Referenced by gpu_pass_shader_validate().
| int GPU_max_textures_geom | ( | void | ) |
Definition at line 70 of file gpu_capabilities.cc.
References blender::gpu::GCaps, and blender::gpu::GPUCapabilities::max_textures_geom.
Referenced by gpu_pass_shader_validate().
| int GPU_max_textures_vert | ( | void | ) |
Definition at line 65 of file gpu_capabilities.cc.
References blender::gpu::GCaps, and blender::gpu::GPUCapabilities::max_textures_vert.
Referenced by gpu_pass_shader_validate().
| void GPU_mem_stats_get | ( | int * | totalmem, |
| int * | freemem | ||
| ) |
Definition at line 127 of file gpu_capabilities.cc.
References blender::gpu::Context::get(), and blender::gpu::Context::memory_statistics_get().
Referenced by info_statusbar_string().
| bool GPU_mem_stats_supported | ( | void | ) |
Definition at line 122 of file gpu_capabilities.cc.
References blender::gpu::GCaps, and blender::gpu::GPUCapabilities::mem_stats_support.
Referenced by ed_screens_statusbar_menu_create(), and info_statusbar_string().
| bool GPU_mip_render_workaround | ( | void | ) |
Definition at line 85 of file gpu_capabilities.cc.
References blender::gpu::GCaps, and blender::gpu::GPUCapabilities::mip_render_workaround.
Referenced by blender::gpu::GLTexture::check_feedback_loop(), EEVEE_create_minmax_buffer(), EEVEE_occlusion_compute(), and blender::gpu::FrameBuffer::recursive_downsample().
| bool GPU_shader_image_load_store_support | ( | void | ) |
Definition at line 111 of file gpu_capabilities.cc.
References blender::gpu::GCaps, and blender::gpu::GPUCapabilities::shader_image_load_store_support.
Referenced by blender::gpu::GLStateManager::image_bind().
| bool GPU_stereo_quadbuffer_support | ( | void | ) |
Definition at line 133 of file gpu_capabilities.cc.
References blender::gpu::Context::front_right, and blender::gpu::Context::get().
Referenced by wm_stereo3d_set_exec().
| int GPU_texture_size_with_limit | ( | int | res, |
| bool | limit_gl_texture_size | ||
| ) |
Definition at line 52 of file gpu_capabilities.cc.
References GPU_max_texture_size(), min_ii(), and size().
Referenced by IMB_create_gpu_texture(), is_over_resolution_limit(), and smaller_power_of_2_limit().
| bool GPU_use_hq_normals_workaround | ( | void | ) |
Definition at line 106 of file gpu_capabilities.cc.
References blender::gpu::GCaps, and blender::gpu::GPUCapabilities::use_hq_normals_workaround.
Referenced by curve_create_edit_curves_nor(), DRW_displist_vertbuf_create_loop_pos_and_nor_and_uv_and_tan(), DRW_displist_vertbuf_create_pos_and_nor(), drw_volume_wireframe_cb(), and extract_task_create().
| bool GPU_use_main_context_workaround | ( | void | ) |
Definition at line 95 of file gpu_capabilities.cc.
References blender::gpu::GCaps, and blender::gpu::GPUCapabilities::use_main_context_workaround.
Referenced by drw_deferred_shader_add(), drw_deferred_shader_compilation_exec(), DRW_render_context_disable(), DRW_render_context_enable(), eevee_lightbake_context_disable(), eevee_lightbake_context_enable(), EEVEE_lightbake_job_create(), and EEVEE_lightbake_job_data_alloc().