-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe require #[repr(C)]? #1
Comments
You are correct, i will put patch asap. Probably in one or two week max. But be aware that wrld::Desc macro generate only the VertexBufferLayout of the corresponding layout structure. It's up to you to format data with bytemuck and put the #[repr(C)] macro on your structure. Still an issue anyways. Also you can have a look at BufferData derive macro which generate a structure with bytemuck and repr(C) macro with all the corresponding conversion to one and another. |
Makes sense. I missed the BufferData derive macro. |
It's ok, he was released with 0.2.0 which was just released today. |
This issue has been fix. Wrld::desc now need #[repr(C)] or #[repr(transparent)] in 0.2.2, i will close this issue. |
doesn't have a fixed layout. For example rustc may put color before position or add padding. In fact it will in all likelyhood if you use
-Zrandomize-layout
.The text was updated successfully, but these errors were encountered: