diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-12-17 10:16:06 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-12-17 10:16:06 +0300 |
commit | b9d6271916b6a67a6acf8e3f965e0da94cedabad (patch) | |
tree | d481cf43272bc44b3dc688aed3a12ecac8e35305 /source/blender/gpu | |
parent | 7788293954de1d8ceef3152e23e56a82050f0585 (diff) |
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.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_shader_interface.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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<ShaderInput>(inputs_, attr_len_)); sort_input_list(MutableSpan<ShaderInput>(inputs_ + attr_len_, ubo_len_)); sort_input_list(MutableSpan<ShaderInput>(inputs_ + attr_len_ + ubo_len_, uniform_len_)); + sort_input_list( + MutableSpan<ShaderInput>(inputs_ + attr_len_ + ubo_len_ + uniform_len_, ssbo_len_)); } void ShaderInterface::debug_print() |