GPU: Rename gpu_extensions to gpu_capabilities
This makes more sense as this module has more to it than just GL extensions.
This commit is contained in:
@@ -59,11 +59,11 @@ set(SRC
|
||||
intern/gpu_batch_presets.c
|
||||
intern/gpu_batch_utils.c
|
||||
intern/gpu_buffers.c
|
||||
intern/gpu_capabilities.cc
|
||||
intern/gpu_codegen.c
|
||||
intern/gpu_context.cc
|
||||
intern/gpu_debug.cc
|
||||
intern/gpu_drawlist.cc
|
||||
intern/gpu_extensions.cc
|
||||
intern/gpu_framebuffer.cc
|
||||
intern/gpu_immediate.cc
|
||||
intern/gpu_immediate_util.c
|
||||
@@ -107,11 +107,11 @@ set(SRC
|
||||
GPU_batch_presets.h
|
||||
GPU_batch_utils.h
|
||||
GPU_buffers.h
|
||||
GPU_capabilities.h
|
||||
GPU_common.h
|
||||
GPU_context.h
|
||||
GPU_debug.h
|
||||
GPU_drawlist.h
|
||||
GPU_extensions.h
|
||||
GPU_framebuffer.h
|
||||
GPU_glew.h
|
||||
GPU_immediate.h
|
||||
@@ -134,10 +134,10 @@ set(SRC
|
||||
|
||||
intern/gpu_backend.hh
|
||||
intern/gpu_batch_private.hh
|
||||
intern/gpu_capabilities_private.hh
|
||||
intern/gpu_codegen.h
|
||||
intern/gpu_context_private.hh
|
||||
intern/gpu_drawlist_private.hh
|
||||
intern/gpu_extensions_private.hh
|
||||
intern/gpu_framebuffer_private.hh
|
||||
intern/gpu_immediate_private.hh
|
||||
intern/gpu_index_buffer_private.hh
|
||||
|
@@ -19,6 +19,10 @@
|
||||
|
||||
/** \file
|
||||
* \ingroup gpu
|
||||
*
|
||||
* GPU Capabilities & workarounds
|
||||
* This module expose the reported implementation limits & enabled
|
||||
* workaround for drivers that needs specific codepaths.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
@@ -27,32 +31,23 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* GPU extensions support */
|
||||
|
||||
int GPU_max_texture_size(void);
|
||||
int GPU_max_texture_3d_size(void);
|
||||
int GPU_max_texture_layers(void);
|
||||
int GPU_max_textures(void);
|
||||
int GPU_max_textures_vert(void);
|
||||
int GPU_max_textures_geom(void);
|
||||
int GPU_max_textures_frag(void);
|
||||
float GPU_max_texture_anisotropy(void);
|
||||
int GPU_max_color_texture_samples(void);
|
||||
int GPU_max_cube_map_size(void);
|
||||
int GPU_max_ubo_binds(void);
|
||||
int GPU_max_ubo_size(void);
|
||||
|
||||
int GPU_texture_size_with_limit(int res);
|
||||
|
||||
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);
|
||||
|
||||
int GPU_texture_size_with_limit(int res);
|
||||
|
||||
bool GPU_mem_stats_supported(void);
|
||||
void GPU_mem_stats_get(int *totalmem, int *freemem);
|
||||
|
||||
void GPU_code_generate_glsl_lib(void);
|
||||
|
||||
bool GPU_stereo_quadbuffer_support(void);
|
||||
|
||||
#ifdef __cplusplus
|
@@ -30,7 +30,6 @@
|
||||
|
||||
#include "GPU_batch.h"
|
||||
#include "GPU_batch_presets.h"
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_matrix.h"
|
||||
#include "GPU_platform.h"
|
||||
#include "GPU_shader.h"
|
||||
|
@@ -26,9 +26,9 @@
|
||||
|
||||
#include "DNA_userdef_types.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "gpu_extensions_private.hh"
|
||||
#include "gpu_capabilities_private.hh"
|
||||
|
||||
#include "gl_backend.hh" /* TODO remove */
|
||||
|
@@ -40,7 +40,7 @@
|
||||
|
||||
#include "BKE_material.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_material.h"
|
||||
#include "GPU_shader.h"
|
||||
#include "GPU_uniform_buffer.h"
|
||||
|
@@ -28,7 +28,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "GPU_batch.h"
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_shader.h"
|
||||
#include "GPU_texture.h"
|
||||
|
||||
|
@@ -36,7 +36,7 @@
|
||||
|
||||
#include "DNA_space_types.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_matrix.h"
|
||||
#include "GPU_platform.h"
|
||||
#include "GPU_shader.h"
|
||||
|
@@ -35,7 +35,6 @@
|
||||
|
||||
#include "DNA_space_types.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_matrix.h"
|
||||
#include "GPU_platform.h"
|
||||
#include "GPU_shader.h"
|
||||
|
@@ -30,7 +30,6 @@
|
||||
|
||||
#include "BKE_global.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_glew.h"
|
||||
#include "GPU_state.h"
|
||||
|
||||
|
@@ -32,8 +32,6 @@
|
||||
|
||||
#include "GPU_material.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
|
||||
#include "GPU_uniform_buffer.h"
|
||||
#include "gpu_uniform_buffer_private.hh"
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "BKE_global.h"
|
||||
|
||||
#include "gpu_extensions_private.hh"
|
||||
#include "gpu_capabilities_private.hh"
|
||||
#include "gpu_platform_private.hh"
|
||||
|
||||
#include "glew-mx.h"
|
||||
|
@@ -29,8 +29,6 @@
|
||||
|
||||
#include "glew-mx.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
|
||||
#include "gpu_batch_private.hh"
|
||||
#include "gpu_shader_private.hh"
|
||||
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include "BLI_assert.h"
|
||||
|
||||
#include "GPU_batch.h"
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "glew-mx.h"
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "BKE_global.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "gl_backend.hh"
|
||||
#include "gl_framebuffer.hh"
|
||||
|
@@ -25,7 +25,6 @@
|
||||
|
||||
#include "BLI_string.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_platform.h"
|
||||
|
||||
#include "gl_backend.hh"
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include "BLI_math_base.h"
|
||||
#include "BLI_math_bits.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
|
||||
#include "glew-mx.h"
|
||||
|
||||
|
@@ -25,7 +25,7 @@
|
||||
|
||||
#include "DNA_userdef_types.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
#include "GPU_capabilities.h"
|
||||
#include "GPU_framebuffer.h"
|
||||
#include "GPU_platform.h"
|
||||
|
||||
|
@@ -25,8 +25,6 @@
|
||||
|
||||
#include "BLI_string.h"
|
||||
|
||||
#include "GPU_extensions.h"
|
||||
|
||||
#include "gpu_backend.hh"
|
||||
#include "gpu_context_private.hh"
|
||||
|
||||
|
Reference in New Issue
Block a user