From 45b637e1e79f817b182031246233c29a4344d159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dietrich?= Date: Tue, 15 Mar 2022 16:04:41 +0100 Subject: 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 --- source/blender/gpu/GPU_capabilities.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/gpu/GPU_capabilities.h') 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); -- cgit v1.2.3