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:
authorJeroen Bakker <jeroen@blender.org>2022-05-11 16:19:10 +0300
committerJeroen Bakker <jeroen@blender.org>2022-05-11 16:29:52 +0300
commite354ba701a0090abf131f25f49565660d8a70d0b (patch)
tree48dbb1eae021834f6ed5f6ddce1ec23cb239a69c /source/blender/gpu/GPU_capabilities.h
parent3eb3d363e1ef2a32543b05cca3ce07d3be45ddc0 (diff)
Fix T97330: GPU Subdiv compiler error.
GLSL has different max number of ssbo per glsl stage. This patch checks if the number of compute ssbo blocks matches our requirements for the GPU Subdiv, before enabling it. Some platforms allow more ssbo bindings then blocks per stage.
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 aedac168a01..061b850619f 100644
--- a/source/blender/gpu/GPU_capabilities.h
+++ b/source/blender/gpu/GPU_capabilities.h
@@ -30,6 +30,7 @@ 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_max_compute_shader_storage_blocks(void);
int GPU_extensions_len(void);
const char *GPU_extension_get(int i);