Blender  V2.93
Public Attributes | List of all members
blender::gpu::GPUCapabilities Struct Reference

#include <gpu_capabilities_private.hh>

Public Attributes

int max_texture_size = 0
 
int max_texture_layers = 0
 
int max_textures = 0
 
int max_textures_vert = 0
 
int max_textures_geom = 0
 
int max_textures_frag = 0
 
bool mem_stats_support = false
 
bool shader_image_load_store_support = false
 
bool mip_render_workaround = false
 
bool depth_blitting_workaround = false
 
bool use_main_context_workaround = false
 
bool broken_amd_driver = false
 
bool use_hq_normals_workaround = false
 

Detailed Description

This includes both hardware capabilities & workarounds. Try to limit these to the implementation codebase (i.e.: gpu/opengl/). Only add workarounds here if they are common to all implementation or if you need access to it outside of the GPU module. Same goes for capabilities (i.e.: texture size)

Definition at line 37 of file gpu_capabilities_private.hh.

Member Data Documentation

◆ broken_amd_driver

bool blender::gpu::GPUCapabilities::broken_amd_driver = false

◆ depth_blitting_workaround

bool blender::gpu::GPUCapabilities::depth_blitting_workaround = false

◆ max_texture_layers

int blender::gpu::GPUCapabilities::max_texture_layers = 0

Definition at line 39 of file gpu_capabilities_private.hh.

Referenced by GPU_max_texture_layers().

◆ max_texture_size

int blender::gpu::GPUCapabilities::max_texture_size = 0

Definition at line 38 of file gpu_capabilities_private.hh.

Referenced by GPU_max_texture_size().

◆ max_textures

int blender::gpu::GPUCapabilities::max_textures = 0

Definition at line 40 of file gpu_capabilities_private.hh.

Referenced by GPU_max_textures().

◆ max_textures_frag

int blender::gpu::GPUCapabilities::max_textures_frag = 0

Definition at line 43 of file gpu_capabilities_private.hh.

Referenced by GPU_max_textures_frag().

◆ max_textures_geom

int blender::gpu::GPUCapabilities::max_textures_geom = 0

Definition at line 42 of file gpu_capabilities_private.hh.

Referenced by GPU_max_textures_geom().

◆ max_textures_vert

int blender::gpu::GPUCapabilities::max_textures_vert = 0

Definition at line 41 of file gpu_capabilities_private.hh.

Referenced by GPU_max_textures_vert().

◆ mem_stats_support

bool blender::gpu::GPUCapabilities::mem_stats_support = false

Definition at line 44 of file gpu_capabilities_private.hh.

Referenced by GPU_mem_stats_supported().

◆ mip_render_workaround

bool blender::gpu::GPUCapabilities::mip_render_workaround = false

◆ shader_image_load_store_support

bool blender::gpu::GPUCapabilities::shader_image_load_store_support = false

◆ use_hq_normals_workaround

bool blender::gpu::GPUCapabilities::use_hq_normals_workaround = false

◆ use_main_context_workaround

bool blender::gpu::GPUCapabilities::use_main_context_workaround = false

The documentation for this struct was generated from the following file: