Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <mano-wii>2021-05-14 17:15:00 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-05-14 18:26:40 +0300
commit3f4f109646059ee0780bb40dbd65b3bc8c3a8f3f (patch)
tree73f81510dbed74a3e5048d3aaa366d91b14d6e9f /source/blender/gpu/intern/gpu_capabilities_private.hh
parent079f415debd85b44f9ceaca17edfb82517240448 (diff)
Python GPU: New 'capabilities' module
This module exposes the capabilities defined in the GPU module in C. This will be useful for porting existing code in `bgl` to `gpu`. Reviewed By: fclem, brecht, campbellbarton Maniphest Tasks: T80730 Part of D11147
Diffstat (limited to 'source/blender/gpu/intern/gpu_capabilities_private.hh')
-rw-r--r--source/blender/gpu/intern/gpu_capabilities_private.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_capabilities_private.hh b/source/blender/gpu/intern/gpu_capabilities_private.hh
index 2b3292749f8..7c1d4590ce8 100644
--- a/source/blender/gpu/intern/gpu_capabilities_private.hh
+++ b/source/blender/gpu/intern/gpu_capabilities_private.hh
@@ -41,6 +41,15 @@ struct GPUCapabilities {
int max_textures_vert = 0;
int max_textures_geom = 0;
int max_textures_frag = 0;
+ int max_uniforms_vert = 0;
+ int max_uniforms_frag = 0;
+ int max_batch_indices = 0;
+ int max_batch_vertices = 0;
+ int max_vertex_attribs = 0;
+ int max_varying_floats = 0;
+ int extensions_len = 0;
+ const char *(*extension_get)(int);
+
bool mem_stats_support = false;
bool shader_image_load_store_support = false;
/* OpenGL related workarounds. */