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:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2022-03-15 18:04:41 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-03-15 18:04:41 +0300
commit45b637e1e79f817b182031246233c29a4344d159 (patch)
tree3b29920b99ee194a88d110b7a4a3b258359035be /source/blender/gpu/GPU_capabilities.h
parente08180fdab8925328ed505333f6e5a721b18e0b4 (diff)
GPU capabilities: detect max SSBO bindings
This adds detection of the maximum number of shader storage buffer bindings that is supported on the current platform. This can be useful to turn off features that require compute shaders but use more buffer bindings than available. Differential Revision: https://developer.blender.org/D14337
Diffstat (limited to 'source/blender/gpu/GPU_capabilities.h')
-rw-r--r--source/blender/gpu/GPU_capabilities.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_capabilities.h b/source/blender/gpu/GPU_capabilities.h
index 672139aa407..0d0542aa528 100644
--- a/source/blender/gpu/GPU_capabilities.h
+++ b/source/blender/gpu/GPU_capabilities.h
@@ -29,6 +29,7 @@ int GPU_max_batch_indices(void);
int GPU_max_batch_vertices(void);
int GPU_max_vertex_attribs(void);
int GPU_max_varying_floats(void);
+int GPU_max_shader_storage_buffer_bindings(void);
int GPU_extensions_len(void);
const char *GPU_extension_get(int i);