You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating my nightly rust install my luminance application started rendering my models completely incorrectly, as if the attribute data is being garbled. On the 2022-11-11 nightly build it still works as expected so I'm quite sure rust-lang/rust#102750 being merged is what caused things to break, though I haven't bisected yet.
Adding #[repr(C)] to Vertex fixes the issue so presumably luminance makes a bad assumption somewhere about vertex struct layout being not being reordered.
The text was updated successfully, but these errors were encountered:
nbvdkamp
changed the title
Fields of Vertex struct being reordered on new rust version results in incorrect render result
Fields of Vertex struct being reordered on new rust version results in incorrect render
Jan 16, 2023
After updating my nightly rust install my luminance application started rendering my models completely incorrectly, as if the attribute data is being garbled. On the 2022-11-11 nightly build it still works as expected so I'm quite sure rust-lang/rust#102750 being merged is what caused things to break, though I haven't bisected yet.
This is my vertex struct:
Adding
#[repr(C)]
toVertex
fixes the issue so presumably luminance makes a bad assumption somewhere about vertex struct layout being not being reordered.The text was updated successfully, but these errors were encountered: