commit
Processes and updates the internal format size based on the alignment and size requirements of the elements within the shader storage format. The method ensures that the memory layout complies with the alignment constraints of each element, including primitives and structures, while accounting for array sizes and nested structures.
This function works recursively for nested structures, adjusting the format size at each level and ensuring proper alignment. It operates on the elements
property of the enclosing class.