mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-30 03:11:12 +00:00
Account for an array as the last element of an SSBO struct, when padding
This commit is contained in:
@@ -1515,6 +1515,9 @@ void MakeShaderReflection(const GLHookSet &gl, GLenum shadType, GLuint sepProg,
|
||||
if(last->type.descriptor.type == VarType::Double)
|
||||
size *= 2;
|
||||
|
||||
if(last->type.descriptor.elements > 1)
|
||||
size *= last->type.descriptor.elements;
|
||||
|
||||
stride += size;
|
||||
|
||||
if(stride < desiredStride)
|
||||
|
||||
Reference in New Issue
Block a user