-
-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Description
Describe the bug
The headers generated for consumption via the APIs are missing info. The most recent mcapi fulfillment has a showcase of this bug. That struct bgfx::View has a forced alignment of 64 bytes. Making the size 0x1C0. However in levi its size is 0x1B8. Meaning if an array of these is found (such as in bgfx::Context) the iteration wouldn't work correctly due to a mismatched size.
You can see the alignas in the bgfx repo. So as long as the blob info which levi has contains alignment info about the top level struct it should be as simple as adding an alignas(N) before the class
To Reproduce
Unneeded
Expected behavior
Custom alignment requirements for types are respected
Screenshots
No response
Platform
No response
Version
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels