-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Builtin vertex input fields appear in generated Rust structure #34
Comments
Also, in the generated structure, the position field is |
The
That is the correct behaviour, it is automatically adding the padding bytes in this case. You can provide your own types, it will still ensure (through const assertions that |
I understand that this is the intended behavior. However, the |
Ah you're right. My caffeine is weak today. 😅 |
On second thought, generating The other part about the position being 16 bytes instead of 12 is likely a bug. Alignments are likely handled differently in vertex attrib. I'll need to play around with a working example to test that however. |
I have this structure in a shader used as vertex shader input
In the generated Rust code, the structure still contains the builtin field
vertex_index
However, vertex attributes do not have this field, and it appears only in the structure itself
The text was updated successfully, but these errors were encountered: