Blender  V3.3
Namespaces | Variables
gpu_capabilities.cc File Reference
#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 ()
 
int GPU_texture_size_with_limit (int res)
 
int GPU_max_texture_layers ()
 
int GPU_max_textures_vert ()
 
int GPU_max_textures_geom ()
 
int GPU_max_textures_frag ()
 
int GPU_max_textures ()
 
int GPU_max_work_group_count (int index)
 
int GPU_max_work_group_size (int index)
 
int GPU_max_uniforms_vert ()
 
int GPU_max_uniforms_frag ()
 
int GPU_max_batch_indices ()
 
int GPU_max_batch_vertices ()
 
int GPU_max_vertex_attribs ()
 
int GPU_max_varying_floats ()
 
int GPU_extensions_len ()
 
const char * GPU_extension_get (int i)
 
bool GPU_mip_render_workaround ()
 
bool GPU_depth_blitting_workaround ()
 
bool GPU_use_main_context_workaround ()
 
bool GPU_crappy_amd_driver ()
 
bool GPU_use_hq_normals_workaround ()
 
bool GPU_clear_viewport_workaround ()
 
bool GPU_compute_shader_support ()
 
bool GPU_shader_storage_buffer_objects_support ()
 
bool GPU_shader_image_load_store_support ()
 
int GPU_max_shader_storage_buffer_bindings ()
 
int GPU_max_compute_shader_storage_blocks ()
 
Memory statistics
bool GPU_mem_stats_supported ()
 
void GPU_mem_stats_get (int *totalmem, int *freemem)
 
bool GPU_stereo_quadbuffer_support ()
 

Variables

GPUCapabilities blender::gpu::GCaps
 

Detailed Description

Wrap OpenGL features such as textures, shaders and GLSL with checks for drivers and GPU support.

Definition in file gpu_capabilities.cc.

Function Documentation

◆ GPU_clear_viewport_workaround()

bool GPU_clear_viewport_workaround ( void  )

◆ GPU_compute_shader_support()

bool GPU_compute_shader_support ( void  )

◆ GPU_crappy_amd_driver()

bool GPU_crappy_amd_driver ( void  )

◆ GPU_depth_blitting_workaround()

bool GPU_depth_blitting_workaround ( void  )

◆ GPU_extension_get()

const char* GPU_extension_get ( int  i)

◆ GPU_extensions_len()

int GPU_extensions_len ( void  )

◆ GPU_max_batch_indices()

int GPU_max_batch_indices ( void  )

◆ GPU_max_batch_vertices()

int GPU_max_batch_vertices ( void  )

◆ GPU_max_compute_shader_storage_blocks()

int GPU_max_compute_shader_storage_blocks ( void  )

◆ GPU_max_shader_storage_buffer_bindings()

int GPU_max_shader_storage_buffer_bindings ( void  )

◆ GPU_max_texture_layers()

int GPU_max_texture_layers ( void  )

◆ GPU_max_texture_size()

int GPU_max_texture_size ( void  )

◆ GPU_max_textures()

int GPU_max_textures ( void  )

◆ GPU_max_textures_frag()

int GPU_max_textures_frag ( void  )

◆ GPU_max_textures_geom()

int GPU_max_textures_geom ( void  )

◆ GPU_max_textures_vert()

int GPU_max_textures_vert ( void  )

◆ GPU_max_uniforms_frag()

int GPU_max_uniforms_frag ( void  )

◆ GPU_max_uniforms_vert()

int GPU_max_uniforms_vert ( void  )

◆ GPU_max_varying_floats()

int GPU_max_varying_floats ( void  )

◆ GPU_max_vertex_attribs()

int GPU_max_vertex_attribs ( void  )

◆ GPU_max_work_group_count()

int GPU_max_work_group_count ( int  index)

◆ GPU_max_work_group_size()

int GPU_max_work_group_size ( int  index)

◆ GPU_mem_stats_get()

void GPU_mem_stats_get ( int *  totalmem,
int *  freemem 
)

◆ GPU_mem_stats_supported()

bool GPU_mem_stats_supported ( void  )

◆ GPU_mip_render_workaround()

bool GPU_mip_render_workaround ( void  )

◆ GPU_shader_image_load_store_support()

bool GPU_shader_image_load_store_support ( void  )

◆ GPU_shader_storage_buffer_objects_support()

bool GPU_shader_storage_buffer_objects_support ( void  )

◆ GPU_stereo_quadbuffer_support()

bool GPU_stereo_quadbuffer_support ( void  )

Return support for the active context + window.

Definition at line 190 of file gpu_capabilities.cc.

References blender::gpu::Context::front_right, and blender::gpu::Context::get().

Referenced by wm_stereo3d_set_exec().

◆ GPU_texture_size_with_limit()

int GPU_texture_size_with_limit ( int  res)

◆ GPU_use_hq_normals_workaround()

bool GPU_use_hq_normals_workaround ( void  )

◆ GPU_use_main_context_workaround()

bool GPU_use_main_context_workaround ( void  )