From b9d6271916b6a67a6acf8e3f965e0da94cedabad Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 17 Dec 2021 08:16:06 +0100 Subject: GPU: Sort SSBOs In Shader Interface. SSBOs weren't sorted, but other types were. This was an oversight when SSBOs were introduced (GPU compute pipeline). Issue identified by @fclem. --- source/blender/gpu/intern/gpu_shader_interface.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/intern/gpu_shader_interface.cc b/source/blender/gpu/intern/gpu_shader_interface.cc index 1648446d21b..937f49ccaec 100644 --- a/source/blender/gpu/intern/gpu_shader_interface.cc +++ b/source/blender/gpu/intern/gpu_shader_interface.cc @@ -74,6 +74,8 @@ void ShaderInterface::sort_inputs() sort_input_list(MutableSpan(inputs_, attr_len_)); sort_input_list(MutableSpan(inputs_ + attr_len_, ubo_len_)); sort_input_list(MutableSpan(inputs_ + attr_len_ + ubo_len_, uniform_len_)); + sort_input_list( + MutableSpan(inputs_ + attr_len_ + ubo_len_ + uniform_len_, ssbo_len_)); } void ShaderInterface::debug_print() -- cgit v1.2.3