![]() The offset for the first member of the sub-struct is supposed to be the offset for the sub-struct itself (which is 16 bytes aligned). ![]() ![]() The size of the sub-struct is supposed to be the total size of all members. I'm trying to understand std140 alignment for sub-structs within a struct.Īs far as I understood, the base alignment for a sub-struct is supposed to be the member with the largest alignment rounded to the alignment of a vec4 (which is 16 bytes aligned).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |