How do I query the alignment/stride for an SSBO struct?
问题 I'm not sure which structure layout is most suited for my application: shared , packed , std140 , std430 . I'm not asking for an explanation of each, that information is easy to find, it's just hard to figure out the impact each will have on vendor compatibility/performance. If shared is the default, I'm suspecting that's a good starting point. From what I can gather, I have to query the alignment/offsets when using shared or packed , because it's implementation specific. What's the API for